摘要: 1. ZOJ 1610 Count the Colors 2. HDU 1698 Just a Hook 3. HDU 4027 Can you answer these queries? 4. ZOJ 3197 Google Book 1. ZOJ 1610 Count the Colors 直接 阅读全文
posted @ 2021-09-25 16:51 Vinicilia 阅读(30) 评论(0) 推荐(0)
摘要: 题目: 1. ZOJ 3261 2. HDU 4725 3. BZOJ 4052 1. ZOJ 3261 Connections in Galaxy War 思路很简单,将询问离线下来反向操作,将删边转化为加边,就可以使用并查集简单处理了。本题和洛谷P1197几乎是相同的。 代码: 1 #inclu 阅读全文
posted @ 2021-09-22 21:58 Vinicilia 阅读(72) 评论(0) 推荐(0)