1062: 二级C语言-公约公倍 摘要:基本思路: 最大公约数一定比n、m 中的最小的数据小或是一样。 最小公倍数一定是 n*m 或者是更小的数。 ```c #include int main() { in…… 题解列表 2023年01月31日 0 点赞 0 评论 325 浏览 评分:0.0
1159:偶数求和(c语言) 摘要:解题思路:注意事项:参考代码:#include int main () { int n, m; while(scanf("%d %d", &n, &m) != EOF) …… 题解列表 2023年01月31日 0 点赞 0 评论 310 浏览 评分:9.9
李白打酒加强版 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,m,dp[210][110][110]; ci…… 题解列表 2023年01月31日 0 点赞 0 评论 614 浏览 评分:9.3
2913:【桶】整数去重_C++解法 摘要:解题思路:用bucket数组来标记该数字是否已经输出过。若为0,则可以输出;若不为0,则已经输出过,不用输出注意事项:bucket数组下标表示的是数列中的数字,所以数组长度大于100即可。同时将buc…… 题解列表 2023年01月31日 0 点赞 0 评论 702 浏览 评分:9.9
去掉空格 C语言 通俗易懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ for (char a[100] = { 0 }; gets(a);)…… 题解列表 2023年01月31日 0 点赞 0 评论 309 浏览 评分:0.0
ikun崩溃代码 摘要:解题思路:套用if函数判定小数部分舍去,不构成完整的苹果。注意事项:参考代码:#include <stdio.h>int main(){ int n,x,y,z; scanf("%d %d %d",…… 题解列表 2023年01月31日 0 点赞 0 评论 329 浏览 评分:0.0
求两个整数的最大公约数和最小公倍数 摘要:解题思路:用草稿研究的 , 适合初学者!想象一个数(变量)按顺序不断同时!求余a和b(==0)得出来的那一个数!就是最大公约数了(max=i);同理如果你知道最小公倍数的定义 这个变量就不断按a和b…… 题解列表 2023年01月31日 0 点赞 1 评论 256 浏览 评分:6.0
ikun崩溃代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ double x1,y1,x2,y2,x3,y3; double s,p,…… 题解列表 2023年01月31日 0 点赞 0 评论 367 浏览 评分:0.0
1585: 蓝桥杯算法训练VIP-链表数据求和操作 摘要:```cpp #include using namespace std; int main() { int a,b,x=0,y=0; while(cin>>a>>b) …… 题解列表 2023年01月31日 0 点赞 0 评论 386 浏览 评分:6.0
ikun崩溃代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ double n; scanf("%lf",&n); printf("…… 题解列表 2023年01月31日 0 点赞 0 评论 405 浏览 评分:0.0