题解 2803: 整数的个数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int f,a,b,c=0,d=0,e=0; cin>>b;…… 题解列表 2023年11月08日 0 点赞 0 评论 189 浏览 评分:0.0
题解 2802: 满足条件的数累加 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c=0,d; cin>>a>>b; for(…… 题解列表 2023年11月08日 0 点赞 0 评论 231 浏览 评分:0.0
题解 2801: 奇数求和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c=0,d; cin>>a>>b; if(a…… 题解列表 2023年11月08日 0 点赞 0 评论 172 浏览 评分:9.9
C++ |1017完数的判断| 不用数组、自定义函数的“笨方法” 摘要:### 根本不用数组、函数! ### 极其明了、通俗易懂! ###### 之所以叫笨方法,N值大了之后会明显变慢 ###### 而且该代码用了两次重复的遍历来寻找因子以便按格式输出 #####…… 题解列表 2023年11月08日 0 点赞 0 评论 334 浏览 评分:9.9
与圆相关的计算 摘要:解题思路:注意事项:不能用“cin”和“cout”,用了就会报错。参考代码:#include<iostream>using namespace std;int main(){ double r; …… 题解列表 2023年11月08日 0 点赞 0 评论 505 浏览 评分:9.9
暴力枚举+重写sort排序思路简单 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<cmath>using namespace std;const int N =…… 题解列表 2023年11月08日 0 点赞 0 评论 285 浏览 评分:9.9
3000:交换值(题解) 摘要:解题思路:交换值注意事项:wu参考代码:#includeusing namespace std; int main() { int a,b; …… 题解列表 2023年11月08日 0 点赞 2 评论 211 浏览 评分:6.0
C++阶乘20行解决 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;void test(){ long long num,nub=1,a=0;//nub是到当前数…… 题解列表 2023年11月07日 0 点赞 0 评论 136 浏览 评分:0.0
简易广搜代码(不用队列,只调用数组) 摘要:解题思路:与普通广搜不同,这里要统计步数,因此我们存储移动路径的数组要多一行,存储到这一位置所需的步数,即h[x][3]注意事项:参考代码:#include<bits/stdc++.h>using n…… 题解列表 2023年11月07日 0 点赞 0 评论 224 浏览 评分:9.9
简易广搜代码(不用队列,只调用数组) 摘要:解题思路:首先找到第一个非零数字,细胞数加一,再用bfs遍历,把所有非零数字变成0,这就是一个细胞。再继续寻找细胞,按以上步骤重复。注意事项:参考代码:#include<bits/stdc++.h>u…… 题解列表 2023年11月07日 0 点赞 0 评论 257 浏览 评分:0.0