Time Limit: 2 Seconds
Memory Limit: 256MB
Your best score: 0
Source: VS Practice Contest for CatOI 2026 (thatlycheeoolongdrink, JerryCodebreaker)
Editorial: 1

Subtask Score
1 3
2 7
3 9
4 13
5 17
6 23
7 28
8 0