[编程入门]最大公约数与最小公倍数 摘要:解题思路:首先要明白最大公约数与最小公倍数的关系以及如何求出例如:a=18 b=12最大公约数:ii=(a+b)/2;while(a%i!=0||b%i!=0){i--;}或者 for(;a%c!=…… 题解列表 2023年11月26日 0 点赞 0 评论 365 浏览 评分:0.0
可以看一下这么写有什么问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float i; scanf("%f",&i); printf("%.2f\n",(i-32)…… 题解列表 2023年11月26日 1 点赞 0 评论 571 浏览 评分:9.9
很好理解,注意变量 摘要:解题思路:注意事项:%.0lf,会四舍五入参考代码:#include<stdio.h>int main(){ int y; double m,r; scanf("%lf%lf%d",…… 题解列表 2023年11月26日 0 点赞 0 评论 631 浏览 评分:9.9
精简一下,如果还有更精简的请大佬评论 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,s=0; scanf("%d",&n); for(i=2;n>0;i+=3,n--) s+=…… 题解列表 2023年11月26日 0 点赞 0 评论 375 浏览 评分:9.9
大白话描述 摘要:解题思路:注意事项:参考代码:a=int(input().lstrip("0"))b=int(input().lstrip("0"))print(a-b)…… 题解列表 2023年11月26日 0 点赞 0 评论 678 浏览 评分:0.0
基因问题!! 摘要:解题思路:求比例和输入的阈值比大小注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[501],b[501]; …… 题解列表 2023年11月26日 0 点赞 0 评论 549 浏览 评分:0.0
财务管理求月平均值 摘要:解题思路:注意事项:参考代码:sum=0for i in range(12): a=float(input()) sum+=aprint('${:.2f}'.format(…… 题解列表 2023年11月26日 1 点赞 0 评论 529 浏览 评分:9.9
矩阵交换行(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int arr[5][5]={0}; for(int i=0;i<5;i++) { …… 题解列表 2023年11月26日 0 点赞 0 评论 294 浏览 评分:0.0
元素求和(简单版) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int arr[100][100]={0}; int x,y; scanf("%d%d",&x…… 题解列表 2023年11月26日 0 点赞 0 评论 354 浏览 评分:0.0
计算书费写法 摘要:解题思路:注意事项:参考代码:ls1 = list(map(int,input().split()))ls2 = [28.9,32.7,45.6,78,35,86.2,27.8,43,56,65]su…… 题解列表 2023年11月27日 0 点赞 0 评论 392 浏览 评分:0.0