The PDF version of this problem can be downloaded here.
2 3 2 4 3 1 6 3 2 3 3 3 1 4 1 3 6 3 2
2 -1
Migrated from old NTUJ.
2013 ACM Arab Collegiate Programming Contest