The PDF version of this problem can be downloaded here.
4 0 0 1 9 8 2 10 10 1 4 5 0 0 8 2 3 4 8 7 10 10 1 5 0
68 29
Migrated from old NTUJ.
Hsinchu icpc 2011