自定义函数处理素数 题解(简单啦) 摘要:解题思路:就是判断素数,简单粗暴。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n;int main(){ scanf("…… 题解列表 2022年05月09日 0 点赞 0 评论 577 浏览 评分:0.0
二级C语言-求偶数和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int t,n,a,s;int main(){ cin>>n;//输入 for(in…… 题解列表 2022年05月09日 0 点赞 0 评论 430 浏览 评分:0.0
自定义函数求一元二次方程 c++题解(简单) 摘要:解题思路:这题就是按照它题目的意思套用了自定义函数。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;double x1,x2,a,b,c,…… 题解列表 2022年05月09日 0 点赞 0 评论 801 浏览 评分:8.0
[编程入门]三个数最大值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a,b,c;int main(){ cin>>a>>b>>c; cout<…… 题解列表 2022年05月09日 0 点赞 0 评论 631 浏览 评分:0.0
二级C语言-平均值计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int t,n,a[15],s;//定义int main(){ for(int i=…… 题解列表 2022年05月09日 0 点赞 0 评论 455 浏览 评分:0.0
自定义函数处理最大公约数与最小公倍数 题解(c++简单 函数解决) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a,b;int main(){ scanf("%d%d",&a,&b)…… 题解列表 2022年05月09日 0 点赞 0 评论 552 浏览 评分:0.0
第一个HelloWorld程序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ cout<<"**********************…… 题解列表 2022年05月09日 0 点赞 0 评论 454 浏览 评分:0.0
[竞赛入门]简单的a+b 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a,b;int main(){ while(cin>>a>…… 题解列表 2022年05月09日 0 点赞 0 评论 480 浏览 评分:0.0
[编程入门]成绩评定c++ 摘要:解题思路:按题目来判定条件注意事项:<=,>=,<,>不要用错参考代码:#include<iostream>#include<fstream>#include<algorithm>//文件头using…… 题解列表 2022年05月09日 0 点赞 1 评论 690 浏览 评分:9.5
砍竹子(C++实现) ```cpp#includeusingnamespacestd;typedeflonglongll;constintN=2e5+5;intn;lla[N][10];intmain(){cin>>n;lls[10];intres=0,maxstep=0;for(inti=0;i>x;inttop=0;w 题解列表 2022年05月09日 0 点赞 0 评论 1611 浏览 评分:6.0