1. Is the input terminated by a dataset of N = 0? Although it should be, it is not clearly written.
2. For each dataset, should we start the paragaph number from 1? Or should we count paragrach for the whole input file? Although it should be former one, it is not clearly written.
3. Under the problem definition, character may be scaled to use 0 unit width. Should we consider it as 1 unit?
4. It is said "The words in each paragraph are sequences of no more than 8 non-blank characters separated by spaces (that is, blanks - no tab characters will appear in the input). Spaces at the ends of input lines are irrelevant". If this is correct, then in sample input
Code: Select all
3 100
AAA
AAA BBB CCC
I hope this is only a minor mistake instead of a trap....