Time Limit: 4 Seconds
Memory Limit: 256MB
Your best score: 0
Source: IOI 2018
Editorial: 1

Subtask Score
1 0
2 5
3 6
4 20
5 6
6 33
7 30