蓝桥杯算法提高VIP-寻找三位数 (C语言代码) 摘要:解题思路:第一个三位数是123-329;通过for语句,每次都能确定三个三位数的具体数值,把三个三位数的每个数放入一个数组进行排序,最后判断是否满足1 2 3 4 5 6 7 8 9 注意事项:参考代…… 题解列表 2019年02月13日 0 点赞 0 评论 764 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要://当0<=x<2时,(x+1)的二分之一次方。意思也就是sqrt(x+1).二分之一次方可以换成开平方根。 #include<stdio.h>#include<math.h>int main(){ …… 题解列表 2019年02月13日 0 点赞 0 评论 1185 浏览 评分:0.0
【回文数(二)】 还是用数组吧 摘要:解题思路: 1,考虑到十进制以上,用字符串数组储存所输入的数字。 2,编写change函数将字符串数组的元素全部转化成数字,再储存在全局数组a中; …… 题解列表 2019年02月13日 1 点赞 0 评论 1762 浏览 评分:0.0
二叉排序树的基本操作 (C++代码)递归建立BST 摘要:解题思路:重点都注释了温馨提示:判断自己的BST建立得对不对,只需要进行中序遍历,会得到一个从小到大的有序序列。参考代码:#include<cstdio>#include<malloc.h>typed…… 题解列表 2019年02月13日 0 点赞 0 评论 1917 浏览 评分:0.0
【密码】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){ char a[100]; in…… 题解列表 2019年02月13日 0 点赞 0 评论 1059 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:#include<stdio.h>#include<math.h>double fact(int n){ int i; double j=1.0; for(i=1;i<=n;i++) { j*=i;…… 题解列表 2019年02月13日 0 点赞 0 评论 960 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:#include<stdio.h>int main(){ int i; double f; for(i=-100;i<=150;i=i+5) { f=32+(i*(9.0/5.0)); print…… 题解列表 2019年02月13日 0 点赞 0 评论 597 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(3) (C语言代码) 摘要:#include<stdio.h>#include<math.h>int main(){ int i,j,hang=0,lie=0,n; scanf("%d",&n); double m[n][n];…… 题解列表 2019年02月14日 1 点赞 0 评论 1210 浏览 评分:0.0
偶数列举 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n; scanf("%d",&n); for(i=2;i<n;i=i+2) { printf("%…… 题解列表 2019年02月13日 0 点赞 0 评论 1152 浏览 评分:0.0
2006年春浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:#include<stdio.h>int main(){ int youxiu=0,tongguo=0,bujige=0; int a; do { scanf("%d",&a); if(a>=85…… 题解列表 2019年02月13日 0 点赞 0 评论 901 浏览 评分:0.0