Time Limit: 2 Seconds
Memory Limit: 512MB
Your best score: 0
Source: APIO 2020
Editorial: 1

Subtask Score
1 6
2 7
3 17
4 20
5 23
6 27
7 0