Time Limit: 1.5 Seconds
Memory Limit: 256MB
Your best score: 0
Source: RI/RJC NOI Selection Test 2016

Subtask Score
1 9
2 13
3 17
4 14
5 18
6 29
7 0