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

Subtask Score
1 7
2 12
3 15
4 23
5 30
6 13
7 0