题解列表
狡兔 k 窟-bfs
摘要:解题思路:要求两个点之间的最点距离,同时属于同一个洞窟的点他们之间的距离为0那么该问题可以转换为求解两个洞窟的最短距离依次构建的图是关于洞窟的而不是点例如1 3 2 1 2 3:1和4点都属于1号洞窟……
按照要求进行模拟排序
摘要:n=int(input())m=int(input())f=[[0]*2 for i in range(n+1)]def func(x): t=0 ……
用指针数组和字符串解决
摘要:解题思路:声明一个指针数组和字符串,然后更改指针方向后输出指针数组注意事项:参考代码:#include <stdio.h>typedef struct bo { ……
题解 2836: 数组逆序重放
摘要:解题思路:注意事项:参考代码:#include <iostream>#include<algorithm>#include <string>#include <……
题解 2246: 蓝桥杯算法训练-字符串合并 文章 > 编写题解
摘要:解题思路:加起来就行了。注意事项:参考代码:#include <iostream>#include<algorithm>#include <string>#incl……