Time Limit: 2 Seconds
Memory Limit: 1024MB
Your best score: 0
Source: NOI 2020 Prelims

Subtask Score
1 10
2 7
3 11
4 8
5 18
6 16
7 30
8 0