C二级辅导-分段函数 (C语言代码) 摘要:注意一下判断的条件,不能像数学式子那样写条件!#include<stdio.h>int main(){ float x; scanf("%f",&x); if(x<1) printf("%.2f…… 题解列表 2019年02月16日 0 点赞 0 评论 962 浏览 评分: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 评论 807 浏览 评分:0.0
。。比较简单的一种方法。。2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:先找出最小值,再把最小值与第十位换位置。注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int n[10]…… 题解列表 2019年02月15日 1 点赞 0 评论 762 浏览 评分:0.0
。。不用数组。。C二级辅导计负均正 (C语言代码) 摘要:解题思路:用循环循环20次,输入数并判断这个数为正数还是负数。如果是正数就累加,如果是负数就统计个数。最后输出。注意事项:最后的平均数注意是小数,不要用两个整数相除。参考代码:#include<std…… 题解列表 2019年02月15日 1 点赞 0 评论 1910 浏览 评分:9.9
。。不用用数组。。C二级辅导-求偶数和 (C语言代码) 摘要:解题思路:判断输入的数是不是偶数,要是了则累加。注意事项:参考代码:#include<stdio.h> int main() { int n,m,i,sum=0; scanf(…… 题解列表 2019年02月15日 1 点赞 4 评论 1357 浏览 评分:9.7
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 评论 1466 浏览 评分:9.9
C语言训练-角谷猜想 (C语言代码) 摘要:#include<stdio.h>int main(){ int n,m=0; scanf("%d",&n); for(;m!=1;) { if(n%2==0) { m=n/2; …… 题解列表 2019年02月15日 0 点赞 0 评论 1486 浏览 评分:8.8
C语言训练-自由落体问题 (C语言代码) 摘要:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i; double meici=100,zonggong; for(i=0;i<n;i+…… 题解列表 2019年02月15日 0 点赞 0 评论 596 浏览 评分:0.0
蓝桥杯算法训练VIP-王、后传说 (C++代码) 摘要:解题思路:很经典的n皇后问题改版,建议去把2n皇后问题去看一看,深入的理解一下递归的运用,其做题方法跟2n皇后问题一样,只不过这个问题是先把国王在的位置统计好,初始为map数组为1,国王在的位置为0,…… 题解列表 2019年02月15日 0 点赞 0 评论 1336 浏览 评分:9.9
。。经典。。C语言程序设计教程(第三版)课后习题7.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a[10],i,j; for(i=0;i<10;i++) sca…… 题解列表 2019年02月15日 4 点赞 0 评论 1029 浏览 评分:6.0