蓝桥杯算法训练VIP-方格取数 (C++代码) 摘要:参考代码:#include<bits/stdc++.h> using namespace std; const int SIZE = 10; int Map[SIZE][SIZE]; in…… 题解列表 2018年08月26日 0 点赞 0 评论 1531 浏览 评分:9.9
用筛法求之N内的素数。 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int prime(int i)//判断是否为素数的函数{ int j; if(i==2…… 题解列表 2018年08月26日 0 点赞 0 评论 721 浏览 评分:0.0
#include<stdio.h> int main() { double a=100,b=50,c=10,sum1=0,sum2=0,sum3=0,sum=0,i; scanf(" 摘要:参考代码:#include<stdio.h>int main(){ double a,b,c,sum1=0,sum2=0,sum3=0,sum=0,i; scanf("%lf",&a); scanf(…… 题解列表 2018年08月26日 0 点赞 0 评论 1767 浏览 评分:0.0
先求阶乘,后求和#include<stdio.h> int main() { long double sum=0,sn=1; int n; scanf("%d",&n); for(int 摘要:先求阶乘,后求和;先来普及一下阶乘的相关概念;表达式 x!中文名称 阶乘外文名称 factorial问 五的阶乘是多少呢?答 五的阶乘是一百二十啊!5!=1*2*3*4*5=120注意 因为小数是…… 题解列表 2018年08月26日 0 点赞 0 评论 1522 浏览 评分:8.4
数据结构-平衡二叉树的基本操作 (C语言代码) 摘要:参考代码:#include<stdio.h> #include<malloc.h> #define True 1 #define False 0 #define EH 0 #define…… 题解列表 2018年08月26日 1 点赞 0 评论 2370 浏览 评分:9.9
字符逆序 (C语言代码)求大神指出错误,拜托了。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){char a[100]; int i; gets(a); for(i=0;a[i]!=0;i++); …… 题解列表 2018年08月26日 0 点赞 0 评论 598 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.5 (C语言代码) 摘要:解题思路:用 \n 实现换行注意事项:1.注意*号数量 2.注意空格大小写 3记得加“ 4不要忘#include<stdio.h>参考代码:#include<stdio.h>int main(){ …… 题解列表 2018年08月26日 0 点赞 0 评论 866 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>typedef struct{ char num[50]; char name[50]; …… 题解列表 2018年08月25日 0 点赞 0 评论 1209 浏览 评分:0.0
蓝桥杯算法训练VIP-拦截导弹 (C++代码) 摘要:参考代码:#include<bits/stdc++.h> using namespace std; const int SIZE = 100123; int datas[SIZE]; in…… 题解列表 2018年08月25日 1 点赞 0 评论 2233 浏览 评分:9.6
C二级辅导-公约公倍 (C语言代码) 摘要:解题思路:当x>y时,将y作为最大公因子依次递减,寻找最大公因子;选择x的倍数依次递增寻找最小公倍数注意事项:参考代码:#include<stdio.h>int main(){ int x,y…… 题解列表 2018年08月25日 0 点赞 0 评论 756 浏览 评分:0.0