1120: C语言训练-"水仙花数"问题2 摘要:解题思路: 就是一个一个用for循环试。。。注意事项: 这样的数有4个!4个!4个!重要的事情说三遍!!!参考代码:方法一:#include<bits/stdc++.h>using namespac…… 题解列表 2023年07月11日 0 点赞 0 评论 178 浏览 评分:9.9
*****************************最大公约数与最小公倍数***************************** 摘要:解题思路 有那么亿点点多注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,maxx=0; …… 题解列表 2023年07月11日 0 点赞 0 评论 260 浏览 评分:9.9
1011: [编程入门]最大公约数与最小公倍数 摘要:参考代码:#includeusing namespace std;int main(){ int a,b,maxx = 0; cin>>a>>b; for(int i = 1;i<=…… 题解列表 2023年07月11日 0 点赞 0 评论 325 浏览 评分:9.9
[编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int m,n,maxx=0; cin>>m>…… 题解列表 2023年07月11日 0 点赞 0 评论 153 浏览 评分:9.9
aaaaaaaaaaaaaaaaaaaaaaaaaaaaa 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int m,n,maxx=0,minn=0; cin…… 题解列表 2023年07月11日 0 点赞 0 评论 372 浏览 评分:0.0
题解 1011: 最大公约数与最小公倍数 摘要:解题思路:先想一想,m和n的公约数要满足什么条件?m%b==0&&n%b==0那么“最大”呢?for(b=1000000/*其实任意一个大于m和n的数均可*/;;b--)以此类推,也可以得出m和n的最…… 题解列表 2023年07月11日 0 点赞 2 评论 243 浏览 评分:9.9
2780: 奇偶数判断 摘要:解题思路: 没啥,用if+取余运算就行参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n ; cin>>n …… 题解列表 2023年07月11日 0 点赞 0 评论 426 浏览 评分:9.9
3013: 求小数的某一位 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,n;//定义a,b,n, cin>>a>>b>>n…… 题解列表 2023年07月11日 0 点赞 0 评论 440 浏览 评分:9.9
第几项(优质题解) 摘要:解题思路:这是最简单的啦!注意事项:略参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int m,n,s=0; c…… 题解列表 2023年07月11日 0 点赞 2 评论 139 浏览 评分:7.3
3016: 第几项 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,s = 0; cin>>a; for(int…… 题解列表 2023年07月11日 0 点赞 0 评论 244 浏览 评分:6.0