2780: 奇偶数判断 摘要:解题思路: 没啥,用if+取余运算就行参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n ; cin>>n …… 题解列表 2023年07月11日 0 点赞 0 评论 520 浏览 评分:9.9
题解 1011: 最大公约数与最小公倍数 摘要:解题思路:先想一想,m和n的公约数要满足什么条件?m%b==0&&n%b==0那么“最大”呢?for(b=1000000/*其实任意一个大于m和n的数均可*/;;b--)以此类推,也可以得出m和n的最…… 题解列表 2023年07月11日 0 点赞 2 评论 329 浏览 评分:9.9
[编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int m,n,maxx=0; cin>>m>…… 题解列表 2023年07月11日 0 点赞 0 评论 227 浏览 评分: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 评论 416 浏览 评分:9.9
*****************************最大公约数与最小公倍数***************************** 摘要:解题思路 有那么亿点点多注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,maxx=0; …… 题解列表 2023年07月11日 0 点赞 0 评论 337 浏览 评分:9.9
1120: C语言训练-"水仙花数"问题2 摘要:解题思路: 就是一个一个用for循环试。。。注意事项: 这样的数有4个!4个!4个!重要的事情说三遍!!!参考代码:方法一:#include<bits/stdc++.h>using namespac…… 题解列表 2023年07月11日 0 点赞 0 评论 264 浏览 评分:9.9
C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std; int main(){ int N; cin >> N; while …… 题解列表 2023年07月11日 0 点赞 0 评论 263 浏览 评分: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 评论 367 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m, n,i; while (scanf("%d %d", &n, &m) == 2 && …… 题解列表 2023年07月11日 0 点赞 0 评论 565 浏览 评分:9.9
Python编写简单易懂 包含知识点 markdown编写 摘要:``` str1=input() # 字符串的输入 flag=len(str1) # 字符串的长度 for i in str1 : a=str1.find(i) …… 题解列表 2023年07月12日 0 点赞 0 评论 545 浏览 评分:9.9