Time Limit: 2 Seconds
Memory Limit: 1024MB
Your best score: 0
Source: JOIG 2021

Subtask Score
1 5
2 5
3 10
4 20
5 10
6 10
7 20
8 20
9 0