Problem C: 淋雨

Time Limit: 1 Sec Memory Limit: 512 MB

HINT

data