2546:祖先 Java(大数据,快速读入) 摘要:```javascript import java.io.*; public class Test16 { public static void main(String[] arg…… 题解列表 2021年10月03日 0 点赞 1 评论 562 浏览 评分:0.0
T1255-迷宫问题--BFS最短路径输出 摘要:解题思路: 这个题目和[2178题 走迷宫](https://www.dotcpp.com/oj/problem2177.html "2178题")类似,可以参考我的上个题解[(2177: 信息学…… 题解列表 2021年10月02日 0 点赞 0 评论 477 浏览 评分:9.9
二级C语言-平均值计算 简单方法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ double sum=0; double average; int a[…… 题解列表 2021年10月02日 0 点赞 0 评论 474 浏览 评分:8.0
【C语言】迭代法求平方根 摘要:# 原题目 用迭代法求 平方根 公式:求a的平方根的迭代公式为: **X[n+1]=(X[n]+a/X[n])/2** 要求**前后两次求出的差的绝对值少于0.00001**。 输出保留3位小数。…… 题解列表 2021年10月02日 0 点赞 0 评论 491 浏览 评分:0.0
bfs广度遍历 (java) 摘要:bfs(广度遍历)可求最短路径,dfs(深度遍历)可求最远路径 ``` import java.util.LinkedList; import java.util.Scanner; //通…… 题解列表 2021年10月02日 0 点赞 0 评论 436 浏览 评分:9.9
2177: 信息学奥赛一本通T1252-走迷宫--图的广度优先搜索 摘要:解题思路: 图的广度优先算法 树是一个特殊的图,图的广度优先遍历类似于树的层次遍历;而图和树最大的不同就是图可能有环 所以需要一个visited数组来标记结点是否被访问过 参考代码: …… 题解列表 2021年10月02日 0 点赞 0 评论 790 浏览 评分:9.9
A+B for Input-Output Practice (VII) 摘要:解题思路:注意事项:两个\n,我枯了参考代码:#include <stdio.h>int main(){ int a, b; while (scanf_s("%d %d", &a, &b)…… 题解列表 2021年10月02日 0 点赞 0 评论 320 浏览 评分:0.0
一位热心的老大爷-极简-结构清晰 摘要:```c #include int main(){ int a[1001]={0}; int n,num; int count=0; scanf("%…… 题解列表 2021年10月02日 0 点赞 0 评论 217 浏览 评分:0.0
不一样的进制转换!!! 摘要:参考代码:#include <stdio.h>int main(void){ int x,a[10],i=0,j; scanf("%d",&x); while(x!=0) …… 题解列表 2021年10月02日 0 点赞 0 评论 251 浏览 评分:0.0
三个数字排序题解 摘要:解题思路:注意事项:参考代码:list=[int(a) for a in input().split()]list.sort()for i in list: print(i,end=" ")…… 题解列表 2021年10月02日 0 点赞 0 评论 396 浏览 评分:0.0