随笔分类 -  并查集

摘要:http://codeforces.com/contest/699 ALaunch of Collider 题意:n个球,每个球向左或右,速度都为1米每秒,问第一次碰撞的时间,否则输出-1 贪心最短时间一定在RL中,R右边一定有L,L左边一定有R 1 // #pragma comment(linke 阅读全文
posted @ 2016-07-22 20:12 yyblues 阅读(208) 评论(0) 推荐(0)
摘要:A - Fashion in Berland 水 1 // #pragma comment(linker, "/STACK:102c000000,102c000000") 2 #include <iostream> 3 #include <cstdio> 4 #include <cstring> 5 阅读全文
posted @ 2016-07-14 21:02 yyblues 阅读(256) 评论(0) 推荐(0)