Codeforces Round #331 (Div. 2)【未完待续】 http://codeforces.com/problemset/problem/596/B GGGGGGGGGGGGGGGGGGG