随笔分类 -  算法

摘要:Problem H: Road Construction King Mercer is the king of ACM kingdom. There are one capital and some cities in his kingdom. Amazingly, there are no roa 阅读全文
posted @ 2020-01-27 21:11 OldAtaraxia 阅读(168) 评论(0) 推荐(0)
摘要:原题: Description One cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered 1..N is going to attend the big cow party to be held at farm #X (1 ≤ 阅读全文
posted @ 2020-01-26 17:34 OldAtaraxia 阅读(198) 评论(0) 推荐(0)
摘要:1 并查集: 2 #include<utility> 3 #include<iostream> 4 #include<set> 5 #include<map> 6 #include<vector> 7 #include<queue> 8 #include<cmath> 9 #include<algo 阅读全文
posted @ 2020-01-16 20:40 OldAtaraxia 阅读(238) 评论(0) 推荐(0)