- Category:
- Windows Develop
- Tags:
-
- File Size:
- 22kb
- Update:
- 2015-07-09
- Downloads:
- 0 Times
- Uploaded by:
- wendy
Description: Poetry given an N-word contains the physical length of each word in the order of a [0], a [1], ..., a [N-1]. Wishing poem divided into two paragraphs, each have at least one word, each paragraph layout should follow the following rules:
The total number of characters per line that can be accommodated M
Each word must be on the same line, not disconnect wrap
There is only one space, without considering other punctuation between each word the same line
Left-aligned fashion layout, which is the first word of each line in the left-most row of the line
After publishing assume there are m rows, each end of the gap length no English word denoted as s [0], s [1], ..., s [m-1].
The last line is not considered neutral size s [m-1], the design as efficient algorithms to article layout, so P = s [0]* s [0]+ s [1]* s [1]+ ...+ s [m-2]* s [m-2] is minimized. When m = 1, P-equal to zero.
Assume that the first paragraph of the best P value of P1, the second paragraph of the best P value
To Search:
File list (Check if you may need any files):
英文排版.docx