摘要:
并查集+最小生成树水题 暴力枚举即可 链接:https://www.luogu.com.cn/problem/UVA1395 代码: #include<stdio.h> #include<algorithm> #include<iostream> #include<string.h> #includ 阅读全文
摘要:
递归处理即可, 链接:https://www.luogu.com.cn/problem/UVA10562 注意fgets和sscanf的用法,(fgets从指定的流中读取数据,每次读一行) #include <iostream> #include <cstdio> #include <cstring 阅读全文
摘要:
进制转换+DFS(连通块) 链接:https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=258&page=show_problem&problem=3544 先分离成一个一个的块,之后在每个块里找空白,走 阅读全文