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

Subtask Score
1 7
2 8
3 34
4 51
5 0