题解列表
蓝桥杯2013年第四届真题-核桃的数量 (C++代码)
摘要:解题思路:直接暴力。注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin>>a>>……
C二级辅导-求偶数和 (C语言代码)
摘要:解题思路:注意事项:参考代码:/*编制程序,输入n个整数(n从键盘输入,n>0),输出它们的偶数和。*/#include<stdio.h>int main(){ int n, sum = 0, ……
C二级辅导-等差数列 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i, n, sum1 = 2, sum = 0; scanf("%d", &n); f……
power 力量函数——舍罕王的失算 (C语言代码)
摘要:解题思路:1+2+4+8+16+32+64+128+256+512+1024+.........2^64注意事项:#include <math.h>#include <stdio.h>参考代码:#in……
C二级辅导-同因查找 (C语言代码)
摘要:解题思路:注意事项:参考代码:/*求出10至1000之内能同时被2、3、7整除的数,并输出。每行一个。*/#include<stdio.h>int main(){ int i, j; fo……
C二级辅导-计负均正 (C语言代码)
摘要:解题思路:注意事项:参考代码:/*从键盘输入任意20个整型数,统计其中的负数个数并求所有正数的平均值。保留两位小数*/#include<stdio.h>int main(){ int i, n ……
C二级辅导-公约公倍 (C语言代码)
摘要:解题思路:a*b = 最大公约数*最大公倍数注意事项:前面有一篇帖子是跟这道题一模一样的参考代码:/*输入两个正整数m和n,求其最大公约数和最小公倍数。*/#include<stdio.h>int……
C二级辅导-统计字符 (C语言代码)
摘要:解题思路:注意事项: 前面有一篇类似的帖子参考代码:/*输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。*/#include<stdio.h>int m……
C二级辅导-阶乘数列 (C语言代码)
摘要:解题思路:注意事项: 科学计数法的输出格式为%e参考代码:#include<stdio.h>int main(){ int i; double j=1,sum=0; for(i=1……