Time limit
2000 ms
Memory limit
524288 kB
Source
Codeforces Round #419 (Div. 2)
Tags
brute force implementation *1100
Editorial
Announcement (en) Tutorial (en)
Descriptions:

Karen and Morning

CodeForces - 816A