
并查集
文章平均质量分 86
nare123
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #363 (Div. 2) D. Fix a Tree
D. Fix a Treetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA tree is an undirected connected graph witho原创 2016-07-20 18:48:02 · 252 阅读 · 0 评论 -
AtCoder Regular Contest 090 D - People on a Line
Problem Statement There are N people standing on the x-axis. Let the coordinate of Person i be xi. For every i, xi is an integer between 0 and 109 (inclusive). It is possible that more than one perso...原创 2018-02-12 10:47:52 · 363 阅读 · 0 评论