The PDF version of the problem statement can be downloaded here.
5 5 1 2 2 3 3 4 4 5 6 1 2 1 3 1 4 1 5 1 6 7 1 2 2 3 3 4 4 5 5 6 6 7 7 1 2 1 3 2 4 2 5 3 6 3 7 10 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10
2 1 3 2 4
NCPC 2026 Final Problem I