题解 3016: 第几项 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int m,s=0; cin>>m; f…… 题解列表 2023年07月11日 0 点赞 0 评论 374 浏览 评分: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 评论 692 浏览 评分:9.9
2780: 奇偶数判断 摘要:解题思路: 没啥,用if+取余运算就行参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n ; cin>>n …… 题解列表 2023年07月11日 0 点赞 0 评论 674 浏览 评分:9.9
题解 1011: 最大公约数与最小公倍数 摘要:解题思路:先想一想,m和n的公约数要满足什么条件?m%b==0&&n%b==0那么“最大”呢?for(b=1000000/*其实任意一个大于m和n的数均可*/;;b--)以此类推,也可以得出m和n的最…… 题解列表 2023年07月11日 0 点赞 2 评论 501 浏览 评分:9.9
[编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int m,n,maxx=0; cin>>m>…… 题解列表 2023年07月11日 0 点赞 0 评论 421 浏览 评分: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 评论 576 浏览 评分:9.9
*****************************最大公约数与最小公倍数***************************** 摘要:解题思路 有那么亿点点多注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,maxx=0; …… 题解列表 2023年07月11日 0 点赞 0 评论 517 浏览 评分:9.9
1120: C语言训练-"水仙花数"问题2 摘要:解题思路: 就是一个一个用for循环试。。。注意事项: 这样的数有4个!4个!4个!重要的事情说三遍!!!参考代码:方法一:#include<bits/stdc++.h>using namespac…… 题解列表 2023年07月11日 0 点赞 0 评论 441 浏览 评分:9.9
C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std; int main(){ int N; cin >> N; while …… 题解列表 2023年07月11日 0 点赞 0 评论 465 浏览 评分:9.9
2324: 光头强购买新家具 摘要:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;int n,m;int a[10005];bool vis[1…… 题解列表 2023年07月11日 0 点赞 0 评论 531 浏览 评分:9.9