C++求一个闭区间内所有素数和 摘要:解题思路:注意事项:注意1不是素数,在判断是要注意参考代码:#include<iostream>using namespace std;bool check(int i)////用来检验一个数是否是素…… 题解列表 2022年11月04日 0 点赞 0 评论 346 浏览 评分:9.9
2908: 白细胞计数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int n; float num=0; …… 题解列表 2022年11月04日 0 点赞 0 评论 724 浏览 评分:6.4
题解 2906: 笨小猴 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int ZS(int n){ if(n<2) return 0; …… 题解列表 2022年11月04日 0 点赞 0 评论 313 浏览 评分:0.0
两种解法(sort和快速排序) 摘要:解题思路:第一种是利用c++内置函数sort,第二种是利用快速排序.(建议掌握第二种)注意事项:参考代码:第一种:第二种:#include<bits/stdc++.h> using namespac…… 题解列表 2022年11月04日 0 点赞 0 评论 319 浏览 评分:0.0
不用二维数组来解题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef struct st{ int g; char nam…… 题解列表 2022年11月04日 0 点赞 0 评论 369 浏览 评分:0.0
偶数求和和和和和 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<cstdio>using namespace std;int main(){…… 题解列表 2022年11月04日 0 点赞 0 评论 318 浏览 评分:9.9
使用while循环 摘要:参考代码:#include<bits/stdc++.h>using namespace std;int huiwen(int i){ int k; k=i; int t,s=0; …… 题解列表 2022年11月03日 0 点赞 0 评论 356 浏览 评分:9.9
整数序列的元素最大跨度值(c++贼简单) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, n, c, max, min; cin >>…… 题解列表 2022年11月03日 0 点赞 0 评论 669 浏览 评分:6.9
题解 2917: 奇数单增序列 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int b[501]={0},a[252]={0…… 题解列表 2022年11月03日 0 点赞 0 评论 304 浏览 评分:0.0
结构体sort排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef struct M{ string s; float …… 题解列表 2022年11月03日 0 点赞 0 评论 316 浏览 评分:0.0