Time Limit: 5 Seconds
Memory Limit: 1024MB
Your best score: 0
Source: APIO 2018
Editorial: 1

Subtask Score
1 5
2 7
3 10
4 23
5 35
6 20
7 0