蓝桥杯历届试题-数字游戏 (C语言代码) 摘要:解题思路:#include<stdio.h>int main(void){ int i,n,k,t; long long sum=1,a=1,cnt=1; scanf("%d%d%…… 题解列表 2018年03月30日 0 点赞 0 评论 1091 浏览 评分:0.0
蓝桥杯历届试题-核桃的数量 (C++代码) 摘要:#include<iostream> using namespace std; int f(int a,int b){ return b?f(b,a%b):a; } int main(){…… 题解列表 2018年03月30日 1 点赞 0 评论 996 浏览 评分:0.0
数字整除 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> using namespace std; const int M=100+5; char…… 题解列表 2018年04月15日 0 点赞 0 评论 2125 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路:方法1:使用递归,但是递归效率太低,没进行一次函数的调用就压栈一次;方法2:将n年内所有会出现的母牛头数记录下来放在数组中,需要的时候去取数据,这样速度相当快;方法3:初始化前三年的母牛头数…… 题解列表 2018年03月30日 0 点赞 0 评论 778 浏览 评分:0.0
Hello, world! (Java代码) 摘要:解题思路:看代码即可注意事项:参考代码: public static void main(String[] args){ Scanner sc=new Scanner(System.…… 题解列表 2018年03月30日 0 点赞 0 评论 1261 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; int i; int S=0; printf("请输入n的值\n"); …… 题解列表 2018年03月30日 0 点赞 0 评论 978 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.2 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<string.h>int main(){ char str[1024]; char* p; int count1=0,count2=0,count3=0…… 题解列表 2018年03月30日 0 点赞 0 评论 1516 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:主要是运用c的取余和除法,适用于五位一下的数,并不是固定的,不懂的地方再问注意事项:参考代码:#include<stdio.h>int main(){ int num,a; int inde…… 题解列表 2018年03月30日 0 点赞 0 评论 1114 浏览 评分:0.0
蓝桥杯历届试题-分糖果 (雪枫大大叫SnowMapleQueen) 摘要:#include<iostream> using namespace std; int isSame(int a[],int n){ for(int i=1;i<n;i++) if…… 题解列表 2018年03月31日 2 点赞 0 评论 1133 浏览 评分:0.0
幸运儿 (C语言代码) 摘要:解题思路:注意事项:参考代码://#include<iostream> #include<stdio.h> //using namespace std; int main() { int …… 题解列表 2018年03月31日 1 点赞 0 评论 1409 浏览 评分:0.0