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