题解列表
考试评级 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int x;scanf("%d", &x);switch(x/10){case 10:case 9: case 8……
蓝桥杯算法训练VIP-判定字符位置 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#define N 1000int main(){ char a[N]; int i; scanf(……
发工资咯 (C语言代码)
摘要:解题思路:每个人逐个拆分 累加张数注意事项:参考代码:#include<stdio.h>int a[6]={1,2,5,10,50,100};//分别是各个面额int b[102];//储存每个员工工……
C二级辅导-求偶数和 (C语言代码)
摘要:解题思路:先判断给出的数是否为偶数,如果不是偶数就减一变成偶数。奇数对本题无影响,所以减一也没关系。然后利用循环进行减2相加,直到减到N等于2为止跳出循环输出结果。注意事项:VC6编译器再用for循环……
C语言训练-求1+2!+3!+...+N!的和 (C语言代码)
摘要:解题思路:注意事项:要考虑 int 的使用范围 达到16后int 就保存不料了参考代码:#include<stdio.h>int main(){ int i,n; long long t=0,s=1;……
[编程入门]Sn的公式求和 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ long int i,sum=0,sn=0; int n; scanf("%d",&n); for(i=0; ……
[编程入门]水仙花数判断 (C语言代码)
摘要:解题思路:三个变量 判断一下 yes就输出注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[5];int used[5];int ……
[编程入门]带参数宏定义练习 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define swep(x,y) t=x,x=y,y=tint main(){int a,b,t; scanf("%d %d",……
C语言训练-计算1~N之间所有奇数之和 (C++代码)
摘要:解题思路:注意事项:参考代码:#include <iostream>#include <bits/stdc++.h>using namespace std;int main(){ double ……