最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int m, n; scanf("%d %d", &m, &n); …… 题解列表 2024年12月04日 9 点赞 0 评论 1615 浏览 评分:10.0
使用方法嵌套来解决此问题 摘要:解题思路:注意事项:参考代码:public static void main(String []args){ int num1,num2,num3; int max; Scanner…… 题解列表 2024年12月04日 1 点赞 0 评论 1041 浏览 评分:10.0
[编程入门]自由下落的距离计算--巨无敌容易看懂(C语言) 摘要:解题思路:将下落过程加上后,将每落地一次变成落地前的一半并加到路程中,并注意最后一次反弹时不加入到路程中注意事项:要注意变量的定义参考代码:#include<stdio.h>int main(){ …… 题解列表 2024年12月04日 6 点赞 0 评论 900 浏览 评分:10.0
年龄与疾病 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,a[n],b=0,c=0,d=0,e=0; float f,g,h,j; sc…… 题解列表 2024年12月05日 1 点赞 0 评论 429 浏览 评分:10.0
【编程入门】自定义函数处理最大公约数与最小公倍数 摘要:解题思路: 求最大公约数利用辗转相除法(欧几里得算法),求最小公倍数利用公式 lcm = (x * y) / gcd(x, y)注意事项: 理解辗转相除法的本质参考代码:#include <stdio…… 题解列表 2024年12月05日 5 点赞 0 评论 1140 浏览 评分:10.0
用while循环,卡住终止点是更新后的a=0 ;不断用10求模,不断更新,循环输出 摘要:解题思路:1.用while循环,卡住终止点是更新后的a=02.不断用10求模,不断更新,循环输出参考代码:#include<iostream> using namespace std; int m…… 题解列表 2024年12月05日 3 点赞 0 评论 418 浏览 评分:10.0
大象喝水题解,,,, 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int h,r,t; double v; scanf("%d %d",&h,&r); …… 题解列表 2024年12月05日 1 点赞 0 评论 328 浏览 评分:10.0
编写题解 1000: [竞赛入门]简单的a+b 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a, b; // 使用循环来处理多组测试数据 while (scanf("%d %…… 题解列表 2024年12月05日 14 点赞 1 评论 3025 浏览 评分:10.0
编写题解 1003: [编程入门]密码破译 摘要:解题思路:译码规律是:用原来字母后面的第4个字母代替原来的字母. 注意事项:参考代码:#include <stdio.h>int main() { // 初始化变量 char c1 =…… 题解列表 2024年12月05日 15 点赞 0 评论 3178 浏览 评分:10.0
编写题解 1008: [编程入门]成绩评定 摘要:解题思路:题目要求根据输入的整数成绩(0-100),输出对应的成绩等级。成绩等级分为 ‘A’、‘B’、‘C’、‘D’ 和 ‘E’,具体分级标准如下:90分及以上为 ‘A’80-89分为 ‘B’70-7…… 题解列表 2024年12月05日 6 点赞 1 评论 1721 浏览 评分:10.0