【推导】Codeforces Round #484 (Div. 2) C. Cut 'em all!

NoSuchKey