Codeforces Round #398 (Div. 2) B. The Queue brute force+greedy
B. The Queue time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output ...
Free Open Share