1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int m,n,i=1,c; scanf("%d %d",&m,&n); // for(i=1;i<=m…… 题解列表 2021年07月06日 0 点赞 0 评论 541 浏览 评分:0.0
so easy!!!!!!成绩评定 解题思路:if比较难写,switch语句简洁点注意事项:break要加上否则就执行下一句了,输出用putchar;先前我用的是printf一直不对,换上putchar就可以了参考代码:#includeintmain(){intx;intgrade;scanf("%d", 题解列表 2021年07月07日 0 点赞 0 评论 593 浏览 评分:0.0
编写题解 1020: [编程入门]猴子吃桃的问题(python代码) 解题思路:用方程思想。每一天吃的都用表达式列出来相加,再加上剩下的1个就是总数。然后解出来总数的表达式,再编写代码就行了。这里要注意,最后一天没有吃,不要把最后一天算进去。注意事项:参考代码:a=input()a=int(a)d=0b=0foriinrange(1, 题解列表 2021年07月07日 0 点赞 0 评论 809 浏览 评分:0.0
1019: [编程入门]自由下落的距离计算(C语言代码) 摘要:原题链接:[题目 1019: [编程入门]自由下落的距离计算](https://www.dotcpp.com/oj/problem1019.html "题目 1019: [编程入门]自由下落的距离计算…… 题解列表 2021年07月07日 0 点赞 0 评论 748 浏览 评分:0.0
编写题解 1060: 二级C语言-同因查找(python语言) 摘要:解题思路:使用循环解题注意事项:参考代码:a = 10while a<1000: if a%2==0 and a%3==0 and a%7==0: print(a) …… 题解列表 2021年07月07日 0 点赞 0 评论 600 浏览 评分:0.0
题解 1241: 盐水的故事 摘要:参考代码:#include<stdio.h>#include<string.h>#include<math.h>int main(){ float vul,d; scanf("%f%f",…… 题解列表 2021年07月07日 0 点赞 0 评论 738 浏览 评分:0.0
1025[编程入门]数组插入处理 摘要:```c #include int main(){ int a[10],number; int i,j; for (i = 0; i < 10; i++) …… 题解列表 2021年07月07日 0 点赞 0 评论 705 浏览 评分:0.0
一个投机取巧的解法,能通过评测,但是不完美 摘要:解题思路:注意事项:m数组定义长度小一点会报结果错误73参考代码:#include<stdio.h>int main(){ int a,c,i,j,m[100000]={0}; scanf…… 题解列表 2021年07月07日 0 点赞 0 评论 718 浏览 评分:0.0
题解 1239: 班级人数 摘要:参考代码:#include<stdio.h>#include<string.h>int main(){ float a,b; float i,j; here: while(scanf(…… 题解列表 2021年07月08日 0 点赞 0 评论 697 浏览 评分:0.0
自定义函数处理最大公约数与最小公倍数 摘要:解题思路:辗转相除法求两数的最大公约数,两数之积/最大公约数=最小公倍数参考代码:#include<stdio.h> int gcd(int a, int b){ if (a % b …… 题解列表 2021年07月08日 0 点赞 0 评论 728 浏览 评分:0.0