The PDF version of this problem can be downloaded here.
2 3 50 150 150 250 4 150 -50 250 50
2 3
Migrated from old NTUJ.
Hsinchu icpc 2011