筛选N以内的素数(C++) 摘要:解题思路:s判断是否是质数或合数,for (int j=2;j*j<=i;j++) if (i%j==0) s=false;的意思是2,3,4,5…… 题解列表 2022年05月11日 0 点赞 0 评论 541 浏览 评分:9.9
矩阵对角线求和(C++) 摘要:解题思路:注意事项:是C++语言!!!要用#include参考代码:#includeusing namespace std;int s, t;int main(){ for (int i…… 题解列表 2022年05月11日 0 点赞 1 评论 353 浏览 评分:7.3
二级C语言-寻找矩阵最值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long n,a,x,y,d;int main(){ cin>>n…… 题解列表 2022年05月10日 0 点赞 0 评论 220 浏览 评分:0.0
[编程入门]迭代法求平方根 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;double x,b,c;int main(){ cin>>x; b=x…… 题解列表 2022年05月10日 0 点赞 0 评论 236 浏览 评分:0.0
最小公倍数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int fun(int a,int b){ if(b==0) return a; r…… 题解列表 2022年05月10日 0 点赞 0 评论 294 浏览 评分:0.0
[编程入门]完数的判断 摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int N; cin>>N; for(int…… 题解列表 2022年05月10日 0 点赞 0 评论 180 浏览 评分:0.0
[编程入门]报数问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m,s=0;scanf("%d",&n); …… 题解列表 2022年05月10日 0 点赞 0 评论 226 浏览 评分:0.0
[编程入门]宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;double a[10];int main() { for(int i=0;i…… 题解列表 2022年05月10日 0 点赞 0 评论 231 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> #define area sqrt(S*(S-a)*(S-b)*(S-c))#define S ((a+b+c)/2)us…… 题解列表 2022年05月10日 0 点赞 0 评论 225 浏览 评分:0.0
[编程入门]结构体之成绩统计2 摘要:解题思路:简单模拟注意事项:说30行是因为我的注释占了三行不算。参考代码:#include<bits/stdc++.h>using namespace std;int n,sum[3],maxn,cn…… 题解列表 2022年05月10日 0 点赞 0 评论 305 浏览 评分:0.0