1114排序(暴力破解) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int arr[5]; for (int i = 1; i <= 4;…… 题解列表 2024年06月11日 0 点赞 0 评论 327 浏览 评分:0.0
简单for循环实现详解 摘要:解题思路:H为high,S为sum。for循环实现。注意事项:①for (int i = 1; i < N; i++):从i=1开始循环,即球从1000M落下后开始计算,所以S初始值先加上初始的H(1…… 题解列表 2024年06月11日 0 点赞 0 评论 270 浏览 评分:9.9
1113保留字母(while循环输出) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ char s; while ((cin >> s)) { if (s…… 题解列表 2024年06月11日 0 点赞 0 评论 225 浏览 评分:0.0
1112一元二次方程(数学求根公式解决) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ double a, b, c; cin …… 题解列表 2024年06月11日 0 点赞 0 评论 552 浏览 评分:0.0
记忆化搜索(dfs+字典)(dfs+剪枝) 摘要:解题思路: 一层循环线性遍历,vis用于去重,mp用于局部去重注意事项: 目前 dotcpp 官方测评数据存在问题参考代码:错解(目前可通过 dotcpp 所有测试样例)#include <bits/…… 题解列表 2024年06月11日 3 点赞 0 评论 572 浏览 评分:10.0
密码破译(包含字母WXYZ) 摘要:解题思路:主要思路ASCII的循环思路,目前我自己还处于新手入门阶段,所以很多原理性的内容,无法做出更多的解释。题解我是参考前边几个大佬的思路,按照我自己的理解写的,如果有不对的地方,欢迎指正。假设数…… 题解列表 2024年06月10日 1 点赞 0 评论 363 浏览 评分:0.0
题解 1852: 求1+2+3+...+n的值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,sum=0; cin…… 题解列表 2024年06月10日 0 点赞 0 评论 124 浏览 评分:0.0
简单易懂 思路简单 摘要:解题思路:注意事项:参考代码:while True: try: lt=input().split() lt.pop(0) ls=['fork','chopsticks&#…… 题解列表 2024年06月09日 0 点赞 0 评论 160 浏览 评分:0.0
C语言训练-计算1~N之间所有奇数之和 摘要:解题思路:注意事项:参考代码:#include <stdio.h> void fun(int n) { int i,sum=0; for(i=1;i<=n;i++) if(i%2!=…… 题解列表 2024年06月09日 0 点赞 0 评论 137 浏览 评分:0.0