Friday, October 3, 2014

ACM 1881. Long problem statement / Длинное условие задачи

We need to implement the process carefully. We will keep variables representing the current page, line and how many characters are left on the current line. Then we need to input the words and check if there is enough space left for that word then we add it to the current line otherwise we start a new line, by starting a new line we need to keep the track of the page because if the new line is greater than the number of lines on the page then we need to move to a new page.


       FULL SOURCE CODE

No comments:

Post a Comment