简单的a+b (C语言代码) 摘要:解题思路:定义整形变量a.b宏定义两者的和。注意事项:参考代码:#include<stdio.h>#define M(a+b) a+bint main(){ int a,b,m,; pri…… 题解列表 2018年08月19日 0 点赞 0 评论 1401 浏览 评分:0.0
最小三个数 (C语言代码)(占沙发!第一个题解!) 摘要:解题思路:先接受,后用冒泡排序,直接输出前三个。注意事项:参考代码:#include<stdio.h>int main(){ int a[100],n,i=0,j,p; scanf("%d",&n);…… 题解列表 2018年08月19日 4 点赞 0 评论 982 浏览 评分:0.0
蓝桥杯2014年第五届真题-分糖果 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int i,n,j, f=1,c=0; scanf("%d",&n); int a[n], …… 题解列表 2018年08月19日 0 点赞 0 评论 844 浏览 评分:0.0
字符逆序 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[10],b[10]; gets(a); int l=strle…… 题解列表 2018年08月19日 0 点赞 0 评论 661 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,n,a[54]={1,2,3,4}; for(i=4;i<=54;i++) a[i]=a[i-1…… 题解列表 2018年08月19日 0 点赞 0 评论 751 浏览 评分:0.0
蓝桥杯算法训练VIP-最长字符串 (C语言代码) 摘要:解题思路:注意事项:参考代码: #include <stdio.h>#include <string.h>int main(){ int i,n,max=0; char a…… 题解列表 2018年08月19日 0 点赞 0 评论 897 浏览 评分:0.0
蓝桥杯2013年第四届真题-核桃的数量 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,num; scanf("%d %d %d",&a,&b,&c…… 题解列表 2018年08月19日 0 点赞 0 评论 802 浏览 评分:0.0
蓝桥杯2013年第四届真题-核桃的数量 (C语言代码)——辗转相除 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int a,int b){ int t=1; //防止t为空 if(a<b…… 题解列表 2018年08月19日 0 点赞 0 评论 1275 浏览 评分:0.0
【密码】 (C语言代码)简单易懂的笨办法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#define H 50void changdu(char (*m)[H],int len[],in…… 题解列表 2018年08月19日 0 点赞 0 评论 769 浏览 评分:0.0
A+B for Input-Output Practice (II) (C语言代码) 摘要:解题思路:以要输入的次数n结束;输入一对整数,输出它们的和;注意事项:依然是求A+B,但它的输入数据为:21 510 20输出为:630由输入数据第一行的2,我们可以看出表示有两组数据,也就是输入一对…… 题解列表 2018年08月20日 0 点赞 0 评论 1936 浏览 评分:0.0