The PDF version of the problem statement can be downloaded here.
6 0 0 1 3 0 2
30
3 10000 10000 10000
528058997
NCPC 2026 Final Problem H