题解 3012: 分苹果 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,s=0; cin>>n; fo…… 题解列表 2023年07月10日 0 点赞 0 评论 360 浏览 评分:9.9
5ms绝杀,有注释,一看就懂 摘要:解题思路:定义两个数组,一个存当前糖果数,另一个存糖果的一半注意事项:参考代码:#include<stdio.h>int main(){ int people_num,i=0,sum=0; …… 题解列表 2023年07月10日 0 点赞 0 评论 325 浏览 评分:9.9
直接拿捏... 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void direction(char *head,int line,int list,int array[line][list],in…… 题解列表 2023年07月11日 0 点赞 0 评论 459 浏览 评分:9.9
余数相同问题 摘要:解题思路:#include<bits/stdc++.h>using namespace std;int main(){ int x=2,a,b,c; cin>>a>>b>>c; while…… 题解列表 2023年07月11日 0 点赞 0 评论 536 浏览 评分:9.9
求小数的某一位 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,n,c; cin>>a>>b>>n…… 题解列表 2023年07月11日 0 点赞 0 评论 276 浏览 评分:9.9
题解 3016: 第几项 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int m,s=0; cin>>m; f…… 题解列表 2023年07月11日 0 点赞 0 评论 256 浏览 评分: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 评论 558 浏览 评分:9.9
2780: 奇偶数判断 摘要:解题思路: 没啥,用if+取余运算就行参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n ; cin>>n …… 题解列表 2023年07月11日 0 点赞 0 评论 542 浏览 评分:9.9
题解 1011: 最大公约数与最小公倍数 摘要:解题思路:先想一想,m和n的公约数要满足什么条件?m%b==0&&n%b==0那么“最大”呢?for(b=1000000/*其实任意一个大于m和n的数均可*/;;b--)以此类推,也可以得出m和n的最…… 题解列表 2023年07月11日 0 点赞 2 评论 352 浏览 评分:9.9
[编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int m,n,maxx=0; cin>>m>…… 题解列表 2023年07月11日 0 点赞 0 评论 256 浏览 评分:9.9