1267: A+B Problem 摘要:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b ; cin>>a>>b ; cout<<a+b…… 题解列表 2023年07月11日 0 点赞 0 评论 433 浏览 评分:7.3
1120: C语言训练-"水仙花数"问题2 摘要:解题思路: 就是一个一个用for循环试。。。注意事项: 这样的数有4个!4个!4个!重要的事情说三遍!!!参考代码:方法一:#include<bits/stdc++.h>using namespac…… 题解列表 2023年07月11日 0 点赞 0 评论 278 浏览 评分:9.9
*****************************最大公约数与最小公倍数***************************** 摘要:解题思路 有那么亿点点多注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,maxx=0; …… 题解列表 2023年07月11日 0 点赞 0 评论 351 浏览 评分: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 评论 424 浏览 评分:9.9
[编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int m,n,maxx=0; cin>>m>…… 题解列表 2023年07月11日 0 点赞 0 评论 241 浏览 评分: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 评论 479 浏览 评分:0.0
题解 1011: 最大公约数与最小公倍数 摘要:解题思路:先想一想,m和n的公约数要满足什么条件?m%b==0&&n%b==0那么“最大”呢?for(b=1000000/*其实任意一个大于m和n的数均可*/;;b--)以此类推,也可以得出m和n的最…… 题解列表 2023年07月11日 0 点赞 2 评论 342 浏览 评分:9.9
2780: 奇偶数判断 摘要:解题思路: 没啥,用if+取余运算就行参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n ; cin>>n …… 题解列表 2023年07月11日 0 点赞 0 评论 529 浏览 评分:9.9
python 知识点:字符统计 简单易懂 摘要:解题思路:学习python第一天注意事项: python的在线编译器用不了参考代码:# 字符串的统计 str.count('字符串') 输出为int类型的个数str=input()a0…… 题解列表 2023年07月11日 0 点赞 1 评论 480 浏览 评分:4.7
[编程入门]选择排序 摘要:解题思路:先定义一个数组用来存放整型数据,然后从数组第一个数开始和后面每一个数比较,找到比第一个数小的数,交换两个数的位置,接着往后比较,直到比较完,这时第一个数已经是最小的,开始从第二个数比较,重复…… 题解列表 2023年07月11日 0 点赞 0 评论 315 浏览 评分:8.0