Codeforces Round #598 (Div. 3)- E. Yet Another Division Into Teams - 动态规划

NoSuchKey