Time Limit: 4 Seconds
Memory Limit: 512MB
No. of ACs: 10
Your best score: 0
Source: IOI 2018

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