编写题解 2773: 计算线段长度 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ double Xa,Xb,xa,xb; double s; …… 题解列表 2024年12月05日 2 点赞 0 评论 390 浏览 评分:0.0
编写题解 1002: [编程入门]三个数最大值 摘要:解题思路: 假设a是最大值,然后用a与b,c 比较,哪个大就让max等于哪个注意事项:参考代码:#include <stdio.h>int main() { int a, b, c; i…… 题解列表 2024年12月05日 8 点赞 0 评论 774 浏览 评分:9.9
编写题解 1007: [编程入门]分段函数求值 摘要:解题思路: 只需要判断x所处的范围就行了注意事项:参考代码:#include<stdio.h>int main(){ //判断x int x; int y; //只需要判断x所在的范围 scanf…… 题解列表 2024年12月05日 3 点赞 0 评论 1827 浏览 评分:6.0
编写题解 2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,x,y,sum=0; scanf("%d %d %d",&n,&x,&y); s…… 题解列表 2024年12月05日 0 点赞 0 评论 231 浏览 评分:0.0
编写题解 1000: [竞赛入门]简单的a+b 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a, b; // 使用循环来处理多组测试数据 while (scanf("%d %…… 题解列表 2024年12月05日 16 点赞 1 评论 3211 浏览 评分:10.0
大象喝水题解,,,, 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int h,r,t; double v; scanf("%d %d",&h,&r); …… 题解列表 2024年12月05日 1 点赞 0 评论 362 浏览 评分:10.0
求球的体积 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ double r,v; while(scanf("%lf",&r)!=EOF) { …… 题解列表 2024年12月05日 3 点赞 0 评论 701 浏览 评分:0.0
用while循环,卡住终止点是更新后的a=0 ;不断用10求模,不断更新,循环输出 摘要:解题思路:1.用while循环,卡住终止点是更新后的a=02.不断用10求模,不断更新,循环输出参考代码:#include<iostream> using namespace std; int m…… 题解列表 2024年12月05日 3 点赞 0 评论 443 浏览 评分:10.0
【编程入门】自定义函数处理最大公约数与最小公倍数 摘要:解题思路: 求最大公约数利用辗转相除法(欧几里得算法),求最小公倍数利用公式 lcm = (x * y) / gcd(x, y)注意事项: 理解辗转相除法的本质参考代码:#include <stdio…… 题解列表 2024年12月05日 5 点赞 0 评论 1296 浏览 评分: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 点赞 1 评论 457 浏览 评分:10.0