蓝桥杯算法提高VIP-计算质因子 (C语言代码)所谓质因子 摘要:解题思路:所谓质因子就是 一个数字的因子中是质数的,比如说6中的因子有2,3,其中只有2,3是质数,而8的因子有2,4,但由于4不是质数,所以8的输出只有2.参考代码:#include<stdi…… 题解列表 2019年04月29日 0 点赞 0 评论 1425 浏览 评分:0.0
蓝桥杯算法提高VIP-前10名 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int a[2000]; int main() { int n,t; scanf("%d",&n); //输入 …… 题解列表 2019年04月29日 0 点赞 0 评论 2497 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.5 (C语言代码) 摘要:解题思路:设立一个数组当作人数,将他们初始化为0当作特征值,然后利用for循环和一个小技巧(i=(++i)%n)不断遍历数组,for (i=0; i<n; i=(++i)%n)再利用count计数,每…… 题解列表 2019年04月29日 1 点赞 1 评论 800 浏览 评分:7.0
2006年春浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>double fact(int k){ if(k == 0 || k == 1) return 1; else…… 题解列表 2019年04月29日 0 点赞 0 评论 1216 浏览 评分:0.0
2006年春浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a; int x = 0, y = 0, z = 0; scanf("%f", &…… 题解列表 2019年04月29日 0 点赞 0 评论 1410 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(3) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n, i, j, a[6][6], b[6][6], k, t, …… 题解列表 2019年04月29日 0 点赞 0 评论 1036 浏览 评分:0.0
蓝桥杯算法提高VIP-五次方数 (C语言代码)本题:如何判断边界! 本来我的题目是从1开始的数据,这样比现在这个答案要多出一个1数据作为答案(1的5次方=1)但是发现这样错了范围的推理过程如下:上边界:以单位数最大值9为边界,9^5=59049是五位数字,那么5位数字增加一位为添加任何数据的极限,即5*(9^5)=295245(即每一位都是9, 题解列表 2019年04月29日 1 点赞 7 评论 3057 浏览 评分:9.9
【计算球体积】 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>int main(){ using namespace std; double r; while(c…… 题解列表 2019年04月29日 0 点赞 0 评论 2488 浏览 评分:9.9
【求[X,Y]内被除3余1并且被除5余3的整数的和】 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { …… 题解列表 2019年04月28日 0 点赞 0 评论 1996 浏览 评分:0.0
【明明的随机数】 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { …… 题解列表 2019年04月28日 0 点赞 0 评论 1193 浏览 评分:0.0