The PDF version of the problem statement can be downloaded here.
4 5 1 2 1 2 3 2 3 4 3 1 3 8 1 4 10
19
NCPC 2026 Final Problem G