1157:亲和数(c语言) 摘要:解题思路:先求出A,B的约数,加起来看看能不能分别和另一个数相等。注意事项:参考代码:#include <stdio.h> int main () { int M, A, B; …… 题解列表 2023年01月31日 0 点赞 0 评论 295 浏览 评分:9.9
三个整数中找最大数 摘要:解题思路: 新手,适合初学者。思路很简单就三个中任挑一个比其他两个大即可 认为要懂||(或) &&(都、和) ?(非) 的知识注意事项:if语句判断时只有一条语句时可不用{ },我是为方便记忆, …… 题解列表 2023年01月31日 0 点赞 1 评论 238 浏览 评分:2.0
1062: 二级C语言-公约公倍 摘要:基本思路: 最大公约数一定比n、m 中的最小的数据小或是一样。 最小公倍数一定是 n*m 或者是更小的数。 ```c #include int main() { in…… 题解列表 2023年01月31日 0 点赞 0 评论 301 浏览 评分:0.0
1159:偶数求和(c语言) 摘要:解题思路:注意事项:参考代码:#include int main () { int n, m; while(scanf("%d %d", &n, &m) != EOF) …… 题解列表 2023年01月31日 0 点赞 0 评论 247 浏览 评分:9.9
李白打酒加强版 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,m,dp[210][110][110]; ci…… 题解列表 2023年01月31日 0 点赞 0 评论 574 浏览 评分:9.3
2913:【桶】整数去重_C++解法 摘要:解题思路:用bucket数组来标记该数字是否已经输出过。若为0,则可以输出;若不为0,则已经输出过,不用输出注意事项:bucket数组下标表示的是数列中的数字,所以数组长度大于100即可。同时将buc…… 题解列表 2023年01月31日 0 点赞 0 评论 632 浏览 评分:9.9
去掉空格 C语言 通俗易懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ for (char a[100] = { 0 }; gets(a);)…… 题解列表 2023年01月31日 0 点赞 0 评论 264 浏览 评分:0.0
ikun崩溃代码 摘要:解题思路:套用if函数判定小数部分舍去,不构成完整的苹果。注意事项:参考代码:#include <stdio.h>int main(){ int n,x,y,z; scanf("%d %d %d",…… 题解列表 2023年01月31日 0 点赞 0 评论 298 浏览 评分:0.0
求两个整数的最大公约数和最小公倍数 摘要:解题思路:用草稿研究的 , 适合初学者!想象一个数(变量)按顺序不断同时!求余a和b(==0)得出来的那一个数!就是最大公约数了(max=i);同理如果你知道最小公倍数的定义 这个变量就不断按a和b…… 题解列表 2023年01月31日 0 点赞 1 评论 231 浏览 评分: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 评论 329 浏览 评分:0.0