求中间数 (C语言代码)直接用if else语句完成 摘要:解题思路:直接使用if else语句 将所有可能的情况列出来注意事项:三个数比较大小时先两两比较 再用&&连接参考代码:#include <stdio.h>int main(){ int a,b…… 题解列表 2019年02月10日 0 点赞 0 评论 1182 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a,b,c,max; scanf("%d%d%d",&a,&b,&c); …… 题解列表 2019年02月10日 8 点赞 0 评论 1086 浏览 评分:0.0
数据结构-八进制数 (C++代码) 摘要:解题思路:模拟进制转换过程即可注意事项:正序存,倒序输出参考代码:#include <iostream> using namespace std; int main() { int a[10…… 题解列表 2019年02月10日 0 点赞 0 评论 1289 浏览 评分:0.0
数据结构-图的遍历——深度优先搜索 (C++代码) 摘要:参考代码:#include<cstdio>#include<stack>using std::stack;int map[50][50];//储存邻接矩阵bool visited[50];//判断第n…… 题解列表 2019年02月11日 0 点赞 0 评论 1182 浏览 评分:0.0
求总时间 (C语言代码)用递归的方法!!! 摘要:解题思路:这道题也可以连续使用递归来解决。注意事项:参考代码:#include<stdio.h>double function(int x);int main(void){ int N, i; dou…… 题解列表 2019年02月11日 1 点赞 0 评论 1204 浏览 评分:0.0
求所给范围内水仙花数并排列 (C语言代码) 摘要:解题思路:注意事项:sign是标记,当其值为0时表示没有水仙花数,输出no。a, b, c分别用来存储个位,十位,百位数字。参考代码:#include<stdio.h>int main(void){ …… 题解列表 2019年02月11日 0 点赞 1 评论 733 浏览 评分:0.0
蓝桥杯算法提高- c++_ch03_02 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,z,n,l; scanf("%d",&n); for(i=1;i<=n+1;i++) { fo…… 题解列表 2019年02月11日 0 点赞 0 评论 769 浏览 评分:0.0
IP判断 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int change(char *s){ int m=0; if(strlen(s)==1) {…… 题解列表 2019年02月11日 0 点赞 0 评论 1176 浏览 评分:0.0
蓝桥杯算法提高VIP-五次方数 (C语言代码) 摘要:解题思路: 根据五次方数的定义来枚举出所有可能的数进行判断即可。参考代码: //先枚举出所有的结果,然后一次性输出,以节省时间 #include <stdio.h> int main(){ …… 题解列表 2019年02月11日 3 点赞 2 评论 667 浏览 评分:0.0
DNA (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { int n; cin >> n; int a[n][2], i, …… 题解列表 2019年02月11日 0 点赞 0 评论 706 浏览 评分:0.0