CodeForces 630G Challenge Pennants (组合数学+DP)

NoSuchKey