蓝桥杯2014年第五届真题-斐波那契 (Java代码) 摘要:解题思路: 报错Exception in thread "main" java.util.InputMismatchException: For input string: …… 题解列表 2019年02月27日 0 点赞 3 评论 1219 浏览 评分:0.0
字符逆序 (C语言代码) 摘要:解题思路:gets(),puts(),strlen(),前两个是在头文件stdio.h中,后一个是在string.h里,用法如下:1、gets():使用scanf("%s",s) 函数输入字符串时存在…… 题解列表 2019年02月27日 0 点赞 0 评论 908 浏览 评分:0.0
蓝桥杯算法提高VIP-计算器 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.> int main() { int a[10][7]={{0,1,1,1,1,1,1}, …… 题解列表 2019年02月27日 0 点赞 0 评论 929 浏览 评分:0.0
蓝桥杯算法提高VIP-质因数2 (C语言代码) 其实这个题不用很多行代码,质因数有个性质 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,k,s=0,m=0; scanf("%d",&n); k=n; for(i=2;i<=n;i++…… 题解列表 2019年02月27日 0 点赞 0 评论 772 浏览 评分:0.0
C语言训练-列出最简真分数序列* (C语言代码) 摘要:解题思路:如果分子和分母没有除1以外的相同的因子,则这个分数是最简分数。注意事项:参考代码:#include <stdio.h>int main(){ printf("1/40"); …… 题解列表 2019年02月27日 0 点赞 0 评论 724 浏览 评分:0.0
Tom数 (C语言代码) 摘要:解题思路: 由于整数位数未知,我们需要先把整数的位数确定,再分离各位数字。本题贝尔引入了一个变量k表示位数。注意事项:参考代码:#include <stdio.h>#include <st…… 题解列表 2019年02月27日 0 点赞 0 评论 880 浏览 评分:0.0
用筛法求之N内的素数。 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdbool.h>bool is_prime(int);int main(void){ int N, i; scan…… 题解列表 2019年02月27日 0 点赞 0 评论 602 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, i; long int S = 0, y = 1; scanf("%d", &n…… 题解列表 2019年02月27日 0 点赞 0 评论 786 浏览 评分:0.0
P1004 (C语言代码)(有点超时,但思路简单易懂)%63的错误率(暂时保存) 摘要:解题思路:先选出矩阵中的最大值,然后从该数为中心,找出最靠近该数的几个数中的最大值,再以该最大值为中心,重复操作,直到最后没有比中心数小的数截止。注意事项:时间的控制参考代码:#include<std…… 题解列表 2019年02月28日 0 点赞 1 评论 609 浏览 评分:0.0
蓝桥杯算法提高VIP-一元一次方程 (C语言代码) 摘要:解题思路:不知道哪错了,给我错了一半。。。注意事项:参考代码:#include<stdio.h>int main(){ int a,b;double c; scanf("%d %d",&a…… 题解列表 2019年02月27日 0 点赞 0 评论 612 浏览 评分:0.0