二级C语言-计算素数和-题解(C语言代码) 摘要:#include <stdio.h>#include <math.h>int isprime(int x){ int i,j; if(x==2) return 1; i…… 题解列表 2020年12月05日 0 点赞 0 评论 1782 浏览 评分:9.9
蛇行矩阵-题解(C语言代码)较为简洁 摘要:解题思路:注意事项:参考代码:#includeint main(){ int n,i,m,q,x=1,y=0,p; scanf("%d",&n); for(i=n;i>=1;i…… 题解列表 2020年12月05日 0 点赞 0 评论 531 浏览 评分:9.9
[偶数求和]-题解(C语言代码) 摘要:解题思路:注意事项:以文件末尾结尾(EOF)参考代码:#include<stdio.h>int main(){ int a[100]; for(int i=1;i<=100;i++){ a[i-1]…… 题解列表 2020年12月05日 0 点赞 0 评论 879 浏览 评分:9.9
蓝桥杯算法提高VIP-素数求和-题解(C语言代码) 摘要:#include<stdio.h>#include<math.h>int main(){ int n,i,j,flag;long sum=0; scanf("%d",&n); for(i=2;i<=n…… 题解列表 2020年12月05日 0 点赞 0 评论 733 浏览 评分:9.9
蓝桥杯算法提高VIP-质因数-题解(C语言代码) 摘要:#include<stdio.h>int main(){ int n,i,j,k=0; int a[100]; scanf("%d",&n); i=n; while(i>0){ for(j=2;j<…… 题解列表 2020年12月05日 0 点赞 0 评论 613 浏览 评分:9.9
蓝桥杯算法提高VIP-质因数2-题解(C语言代码) 摘要:#include<stdio.h>int main(){ int n,i,j,k=0; int a[100]; scanf("%d",&n); i=n; while(i>0){ for(j=2;j<…… 题解列表 2020年12月05日 0 点赞 0 评论 1412 浏览 评分:9.9
蓝桥杯算法训练VIP-反置数-题解(C语言代码) 摘要:#include<stdio.h>int main(){ int m,n,sum1=0,sum2=0,sum=0,sum3,i,j; scanf("%d%d",&m,&n); i=m; j=n; wh…… 题解列表 2020年12月05日 0 点赞 0 评论 973 浏览 评分:9.9
蓝桥杯算法提高VIP-寻找三位数-题解(C++代码) 摘要:解题思路:c++ dfs(深度优先— 先全排列 后筛选的思想)注意事项: 数组a是从1开始的而不是 0, 将1-9 位的数字放入a[1]-a[9]的数组中 b[1]-b[9]判断该数是否使用过;参…… 题解列表 2020年12月06日 0 点赞 0 评论 610 浏览 评分:9.9
[编程入门]最大公约数与最小公倍数-题解(C语言代码) 摘要:#include<stdio.h>int main(){ int a,b,p,temp; scanf("%d%d",&a,&b); p=a*b; if(a>b){ temp=a; a=b; b=…… 题解列表 2020年12月06日 0 点赞 0 评论 621 浏览 评分:9.9
蓝桥杯算法训练VIP-数的统计-题解(C语言代码) 摘要:#include<stdio.h>int main(){ int n,i,j,k=0,temp,count; int a[1000],b[1000]; scanf("%d",&n); for(i=0;…… 题解列表 2020年12月07日 0 点赞 0 评论 719 浏览 评分:9.9