Codeforces 474B Worms 二分(水
题目链接:http://codeforces.com/contest/474/problem/B#include #include #include #include using namespace std;template inline bool rd(T &ret) { char c; int sgn; if(c=getchar(),c==EOF) retu