The PDF version of this problem can be downloaded here.
2 6 3 3 A 1 B 2 C 3 D 4 F 5 G 6 ABC FEC DBG 2 6 3 A 100 B 1000 BBBBBB AAAAEB BBBBBB
2 400
Migrated from old NTUJ.