LJ 众数问题 (C语言代码)--最简单 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10000],b[1000],i,n,max = 0,t; scanf("%d",&n)…… 题解列表 2019年02月15日 0 点赞 3 评论 1433 浏览 评分:9.9
。。不用用数组。。C二级辅导-求偶数和 (C语言代码) 摘要:解题思路:判断输入的数是不是偶数,要是了则累加。注意事项:参考代码:#include<stdio.h> int main() { int n,m,i,sum=0; scanf(…… 题解列表 2019年02月15日 1 点赞 4 评论 1347 浏览 评分:9.7
。。不用数组。。C二级辅导计负均正 (C语言代码) 摘要:解题思路:用循环循环20次,输入数并判断这个数为正数还是负数。如果是正数就累加,如果是负数就统计个数。最后输出。注意事项:最后的平均数注意是小数,不要用两个整数相除。参考代码:#include<std…… 题解列表 2019年02月15日 1 点赞 0 评论 1882 浏览 评分:9.9
。。比较简单的一种方法。。2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:先找出最小值,再把最小值与第十位换位置。注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int n[10]…… 题解列表 2019年02月15日 1 点赞 0 评论 712 浏览 评分:0.0
。。最简单的方法。。2005年春浙江省计算机等级考试二级C 编程题(3) (C语言代码)(只有十行)。。。 摘要:解题思路:直接按照题意写。注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int n[6][6],m,l,i,j,x…… 题解列表 2019年02月15日 1 点赞 0 评论 754 浏览 评分:0.0
C二级辅导-分段函数 (C语言代码) 摘要:注意一下判断的条件,不能像数学式子那样写条件!#include<stdio.h>int main(){ float x; scanf("%f",&x); if(x<1) printf("%.2f…… 题解列表 2019年02月16日 0 点赞 0 评论 944 浏览 评分:0.0
。。。。:陶陶摘苹果 (C语言代码) 摘要:解题思路:直接写。注意事项:参考代码:#include<stdio.h> int main() { int i,x[10],y,n=0; for(i=0;i<10;i++) …… 题解列表 2019年02月16日 1 点赞 0 评论 1421 浏览 评分:5.5
Cylinder (C语言代码) 摘要:解题思路:注意事项:参考代码:import java.text.DecimalFormat; import java.util.Scanner; public class Main { …… 题解列表 2019年02月16日 0 点赞 0 评论 1109 浏览 评分:0.0
蓝桥杯算法提高VIP-求arccos值 (C语言代码) 摘要:解题思路: cos(a)=b; arccos(b)=a; 那么有arccos(x)=result,cos(result)=x理论上成立 只要测出cos(result)无限接近于x(已知),那么…… 题解列表 2019年02月16日 3 点赞 0 评论 2113 浏览 评分:9.9
lj-超简单 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a[20],i; while(~scanf("%d",&n)){ i = …… 题解列表 2019年02月16日 0 点赞 0 评论 853 浏览 评分:0.0