C语言程序设计教程(第三版)课后习题10.4 (C语言代码) 摘要:参考代码:#include <stdio.h>void fun(int a[],int n,int m){ int i,j=0;int b[20]; for(i=n-m;i<n;i++…… 题解列表 2018年08月20日 0 点赞 0 评论 664 浏览 评分:0.0
蓝桥杯算法提高VIP-特殊的质数肋骨 (C++代码)我用的是打表打出来所有符合条件的,然后直接输出 摘要:解题思路:我的思路是先自己打表,用线性筛素数来打出1-1亿的素数,然后找出符合条件的2-99999999的素数把每一个n对应符合条件的素数找出来,然后输出就好了。#define N 100000050…… 题解列表 2018年08月20日 11 点赞 2 评论 564 浏览 评分:0.0
求圆的面积 (C语言代码) 摘要:解题思路:根据公式:圆的面积=半径*半径*圆周率,利用scanf和printf函数就可以了。有疑问留言。注意事项:注意保留两位小数哦!注意一定要定义圆周率!!!否则答案错误参考代码:#include<…… 题解列表 2018年08月20日 1 点赞 1 评论 1944 浏览 评分:0.0
A+B for Input-Output Practice (II) (C语言代码) 摘要:解题思路:以要输入的次数n结束;输入一对整数,输出它们的和;注意事项:依然是求A+B,但它的输入数据为:21 510 20输出为:630由输入数据第一行的2,我们可以看出表示有两组数据,也就是输入一对…… 题解列表 2018年08月20日 0 点赞 0 评论 1497 浏览 评分:0.0
【密码】 (C语言代码)简单易懂的笨办法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#define H 50void changdu(char (*m)[H],int len[],in…… 题解列表 2018年08月19日 0 点赞 0 评论 688 浏览 评分: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
蓝桥杯2013年第四届真题-核桃的数量 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,num; scanf("%d %d %d",&a,&b,&c…… 题解列表 2018年08月19日 0 点赞 0 评论 668 浏览 评分: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
母牛的故事 (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 评论 616 浏览 评分: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