CF 1978D - Elections

Rating: 1600
Tags: data structures, greedy, implementation, math
Solve time: 1m 38s
Verified: no

Solution

Working