蓝桥杯历届试题-蚂蚁感冒 (C/C++语言代码) 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <cmath> using namespace std; int main() { int n; …… 题解列表 2019年04月08日 10 点赞 0 评论 1289 浏览 评分:6.0
求素数(质数) 摘要:参考代码:#include <stdio.h>int main(){ int N,count; scanf("%d",&N); for(int i=2;i<=N;i++) …… 题解列表 2019年04月10日 1 点赞 0 评论 1322 浏览 评分:6.0
考试评级 (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 评论 1269 浏览 评分: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 评论 1727 浏览 评分:6.0
发工资咯 (C语言代码) 摘要:解题思路:每个人逐个拆分 累加张数注意事项:参考代码:#include<stdio.h>int a[6]={1,2,5,10,50,100};//分别是各个面额int b[102];//储存每个员工工…… 题解列表 2019年04月15日 0 点赞 0 评论 871 浏览 评分:6.0
C二级辅导-求偶数和 (C语言代码) 摘要:解题思路:先判断给出的数是否为偶数,如果不是偶数就减一变成偶数。奇数对本题无影响,所以减一也没关系。然后利用循环进行减2相加,直到减到N等于2为止跳出循环输出结果。注意事项:VC6编译器再用for循环…… 题解列表 2019年04月16日 1 点赞 0 评论 895 浏览 评分: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 评论 888 浏览 评分: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 评论 893 浏览 评分:6.0
[编程入门]水仙花数判断 (C语言代码) 摘要:解题思路:三个变量 判断一下 yes就输出注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[5];int used[5];int …… 题解列表 2019年04月20日 0 点赞 0 评论 1508 浏览 评分: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 评论 1230 浏览 评分:6.0