Time Limit: 1 Seconds
Memory Limit: 1024MB
Your best score: 0
Source: APIO 2021
Editorial: 1 2

Subtask Score
1 5
2 7
3 14
4 10
5 17
6 25
7 22
8 0