The PDF version of this problem can be downloaded here.
4 3 1 2 1 3 2 5 3 4 3 1 2 4 5 6 1 6 2 1 3 4 5 6 7 7 7 1 7 2 3 4 5 6
BOTH EASY HARD OKAY
Migrated from old NTUJ.
2013 ACM Arab Collegiate Programming Contest