Time limit
2000 ms
Memory limit
262144 kB
Source
AtCoder Regular Contest 062
Descriptions:

AtCoDeerくんと選挙速報 / AtCoDeer and Election Report

AtCoder - 2140