C语言程序设计教程(第三版)课后习题4.9 (C语言代码) 摘要:解题思路以及注意事项:注意scanf("%lf",&f);或者scanf("%f",&f);如果你前面定义的f是用double类型的话,就应该用%lf格式,如果f是float类型的话,就应该用%f,不…… 题解列表 2018年08月19日 0 点赞 0 评论 1713 浏览 评分:0.0
蓝桥杯算法提高- c++_ch03_02 (C语言代码) 摘要:解题思路:注意事项:公式百度,注意格式,开头都两个空格,其他自己复制看格式。参考代码: #include <stdio.h> int jc(int n) { int …… 题解列表 2018年08月19日 0 点赞 0 评论 741 浏览 评分:0.0
简单的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 评论 1151 浏览 评分:0.0
最小三个数 (C语言代码)(占沙发!第一个题解!) 摘要:解题思路:先接受,后用冒泡排序,直接输出前三个。注意事项:参考代码:#include<stdio.h>int main(){ int a[100],n,i=0,j,p; scanf("%d",&n);…… 题解列表 2018年08月19日 4 点赞 0 评论 870 浏览 评分: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 评论 683 浏览 评分: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 评论 561 浏览 评分: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 评论 617 浏览 评分:0.0
蓝桥杯算法训练VIP-最长字符串 (C语言代码) 摘要:解题思路:注意事项:参考代码: #include <stdio.h>#include <string.h>int main(){ int i,n,max=0; char a…… 题解列表 2018年08月19日 0 点赞 0 评论 740 浏览 评分: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 评论 669 浏览 评分: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 评论 1079 浏览 评分:0.0