摘要: http://codeforces.com/problemset/problem/598/D 分析:BFS,同一连通区域的周长一样,但查询过多会导致TLE,所以要将连通区域的答案储存,下次查询到该连通区域就可以直接得出结果 阅读全文
posted @ 2019-07-21 23:51 Veasky 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 题目: In some social network, there are nn users communicating with each other in mm groups of friends. Let's analyze the process of distributing some n 阅读全文
posted @ 2019-07-21 22:34 Veasky 阅读(236) 评论(0) 推荐(0) 编辑