The PDF version of this problem can be downloaded here.
3 5 1 2 1 00000 01110 01110 5 7 1 2 1 0000000 0000000 0000000 0000000 0000000
2 -1
Migrated from old NTUJ.
ACM ICPC Dalian 2011