考试评级 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int x;scanf("%d", &x);switch(x/10){case 10:case 9: case 8…… 题解列表 2019年04月12日 0 点赞 0 评论 1145 浏览 评分:6.0
蓝桥杯算法训练VIP-判定字符位置 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#define N 1000int main(){ char a[N]; int i; scanf(…… 题解列表 2019年04月14日 1 点赞 1 评论 1529 浏览 评分:6.0
发工资咯 (C语言代码) 摘要:解题思路:每个人逐个拆分 累加张数注意事项:参考代码:#include<stdio.h>int a[6]={1,2,5,10,50,100};//分别是各个面额int b[102];//储存每个员工工…… 题解列表 2019年04月15日 0 点赞 0 评论 762 浏览 评分:6.0
C二级辅导-求偶数和 (C语言代码) 摘要:解题思路:先判断给出的数是否为偶数,如果不是偶数就减一变成偶数。奇数对本题无影响,所以减一也没关系。然后利用循环进行减2相加,直到减到N等于2为止跳出循环输出结果。注意事项:VC6编译器再用for循环…… 题解列表 2019年04月16日 1 点赞 0 评论 779 浏览 评分:6.0
C语言训练-求1+2!+3!+...+N!的和 (C语言代码) 摘要:解题思路:注意事项:要考虑 int 的使用范围 达到16后int 就保存不料了参考代码:#include<stdio.h>int main(){ int i,n; long long t=0,s=1;…… 题解列表 2019年04月20日 0 点赞 0 评论 767 浏览 评分:6.0
[编程入门]Sn的公式求和 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ long int i,sum=0,sn=0; int n; scanf("%d",&n); for(i=0; …… 题解列表 2019年04月20日 0 点赞 0 评论 793 浏览 评分:6.0
[编程入门]水仙花数判断 (C语言代码) 摘要:解题思路:三个变量 判断一下 yes就输出注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[5];int used[5];int …… 题解列表 2019年04月20日 0 点赞 0 评论 1355 浏览 评分:6.0
[编程入门]带参数宏定义练习 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define swep(x,y) t=x,x=y,y=tint main(){int a,b,t; scanf("%d %d",…… 题解列表 2019年04月22日 2 点赞 0 评论 1088 浏览 评分:6.0
C语言训练-计算1~N之间所有奇数之和 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <bits/stdc++.h>using namespace std;int main(){ double …… 题解列表 2019年04月24日 0 点赞 0 评论 973 浏览 评分:6.0
汽水瓶 (C语言代码) 摘要:解题思路:此题最好建立一个数学模型,说白了就是列个表看出它的规律,剩下的就好解的多了。你拥有的空瓶能够换得的总瓶数剩下的空瓶101210311420521630731840......... …… 题解列表 2019年04月26日 2 点赞 0 评论 1441 浏览 评分:6.0