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

Subtask Score
1 2
2 4
3 9
4 36
5 28
6 9
7 12
8 0