【Codeforces 659G】Fence Divercity
【Codeforces 653G】Move by Prime

【Codeforces 659F】Polycarp and Hay

Zarxdy34 posted @ 2016年4月04日 13:26 in Codeforces with tags 并查集 , 651 阅读

  把点从大到小排序,然后并查集维护连通块大小,检查是否有解。

 


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter