Time limit
2000 ms
Memory limit
1048576 kB
Source
AtCoder Beginner Contest 168
Descriptions: