CF 258B - Little Elephant and Elections

Codeforces 258B: Little Elephant and Elections

CF 258B - Little Elephant and Elections

Rating: 1900
Tags: brute force, combinatorics, dp
Solve time: 51s
Verified: no

Solution