最小公倍数 (C语言代码)(非最小公倍数性质解) 摘要:欢迎大家批评指正,谢谢!!!解题思路: 两个数的最小公倍数不可能比他们的乘积大参考代码: #include<stdio.h> 题解列表 2019年05月06日 0 点赞 0 评论 1651 浏览 评分:0.0
字符逆序 (C语言代码) 摘要:题目描述将一个字符串str的内容颠倒过来,并输出。str的长度不超过100个字符。输入输入包括一行。 第一行输入的字符串。输出输出转换好的逆序字符串。样例输入I am a student样例输出tne…… 题解列表 2019年05月06日 0 点赞 0 评论 1119 浏览 评分:0.0
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:题目描述输入10个数,求它们的平均值,并输出大于平均值的数据的个数。输入10个数输出大于平均数的个数样例输入1 2 3 4 5 6 7 8 9 10样例输出5解题思路:注意事项:参考代码:#inclu…… 题解列表 2019年05月06日 0 点赞 0 评论 870 浏览 评分:0.0
[编程入门]自定义函数之字符提取 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; int i; gets(a); …… 题解列表 2019年05月06日 0 点赞 0 评论 521 浏览 评分:0.0
求阶梯水费 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); if(x<=15) y=2*x; else y=30+(x-1…… 题解列表 2019年05月06日 0 点赞 0 评论 1462 浏览 评分:0.0
考试评级 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int s; scanf("%d",&s); if(s<0 || s>100) return 0; if…… 题解列表 2019年05月06日 0 点赞 0 评论 873 浏览 评分:0.0
求总时间 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,N; float time=0,s=30; scanf("%d",&N); for(i=1;i…… 题解列表 2019年05月06日 0 点赞 0 评论 592 浏览 评分:0.0
printf基础练习2 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); printf("%#o %d %#x\n",n,…… 题解列表 2019年05月06日 0 点赞 0 评论 652 浏览 评分:0.0
[编程入门]有规律的数列求和 (C语言代码) 摘要:解题思路:以最简单的思路,解决这道问题注意事项:float和int的处理,我是直接全float参考代码:#include<stdio.h> int main() { float a=2,…… 题解列表 2019年05月06日 0 点赞 0 评论 729 浏览 评分:0.0
采药 (看楼上大佬的就行,我只是留一下足迹) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define max(x,y) (x)>(y)?(x):(y) int main(){ int dp[102][1001]={0},…… 题解列表 2019年05月06日 0 点赞 0 评论 928 浏览 评分:0.0