迷宫问题 (C++代码) 摘要:解题思路: 简单 BFS题 注意事项: 多组数据注意初始化即可参考代码:#include <queue> #include <iostream> #include <cstring> using…… 题解列表 2018年07月14日 1 点赞 0 评论 747 浏览 评分:0.0
C二级辅导-分段函数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float x, y; scanf("%f", &x); if (x < 1) y = x; else if …… 题解列表 2018年07月14日 2 点赞 0 评论 991 浏览 评分:0.0
蓝桥杯算法提高- c++_ch02_03 (C语言代码) 摘要:#include <stdio.h> int num[3][3]={//3*3的表格 0,-1,1, 1,0,-1, -1,1,0 }; int main(){ int a,b,n;…… 题解列表 2018年07月14日 5 点赞 0 评论 1151 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路 这个是正确的!注意事项:参考代码:#include<stdio.h>int main(){ char c1, c2, c3, c4, c5; c1 = 'C'; c2 = &…… 题解列表 2018年07月14日 0 点赞 0 评论 801 浏览 评分:0.0
String类Byte数组构造方法与ASCII码的简单结合。。题解1161:【回文数(二)】 (Java代码) 摘要:解题思路:String类数组构造方法与ASCII码的简单结合。。代码块有点长,但思路很简单。。注意事项:已在代码块部分标明注释参考代码:import java.util.Scanner;public …… 题解列表 2018年07月14日 0 点赞 0 评论 2154 浏览 评分:0.0
此题可AC (C语言代码) 摘要:解题思路:注意事项: 此题可AC参考代码:#include<stdio.h>int main(){ int n, sum; scanf("%d", &n); sum = (3…… 题解列表 2018年07月14日 1 点赞 0 评论 1133 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a[5], b, i; scanf("%d", &b); for (i = 0; b!=0; i++…… 题解列表 2018年07月14日 0 点赞 0 评论 636 浏览 评分:0.0
数据结构-最小生成树 (C语言代码) 摘要:解题思路: 留个笔记,普鲁斯卡尔算法(和本题数据不符)注意事项:参考代码:#include <iostream> using namespace std; struct mp{ …… 题解列表 2018年07月13日 0 点赞 0 评论 1939 浏览 评分:0.0
优质题解 蓝桥杯算法提高VIP-去注释 (C语言代码) 摘要:解题思路:用数组s模拟栈,从访问栈顶的两个字符入手,找到单行注释开头"//"、多行注释开头"/*"、多行注释结尾"*/"、以及单行注释结尾"\n";注释开始之后需要在各个分支里记录:加上注释符号,注释…… 题解列表 2018年07月13日 1 点赞 1 评论 1895 浏览 评分:8.4
C语言程序设计教程(第三版)课后习题1.6 (C++代码) 摘要:解题思路:定义a,b,c三个变量,通过cin取得三个输入的值并赋值给a,b,c。如果a小于b,那么把b的值赋给a;如果a小于c,那么把c的值赋给a,最后输出a就是结果 。注意事项:参考代码:#incl…… 题解列表 2018年07月13日 0 点赞 3 评论 1549 浏览 评分:9.9