Click on table to read problem, discuss, debug!
Last Submissions | ||||||
---|---|---|---|---|---|---|
Problem | Verdict | Lang | Time | Best | Rank | Submit Time |
| discuss637 - | Accepted | C++11 | 0.080 | 0.000 | 3272 | 38 mins ago |
Suggest:
<1>
The pages are arranged in the following order:
Sheet 1: Front: Last page, First Page
Back: Next First Page, Prev Last Page
Sheet 2: Front: Perv of Perv Last page, Next of Next First Page
Back: Next of Next of Next First Page, Prev of Prev of Prev Last Page
....
=> In general, it is not necessary to understand the problem, it is important that you know how the output will be generated!
<2>
If a blank page is needed, it will be set as follows:
Sheet 1: Front: Blank, First Page (if blank = 1)
Back: Next First Page, Blank (if blank =2)
Sheet 2: Front: Blank, First Page (if blank=3)
Back: Next of Next First Page, Blank (if blank =4)
=> Generally you try to put blank pages on the first sheets (these blank pages will be the last pages) !
* After knowing the rules of generating output, you can easily code or refer to my code implementation!
Code:
No comments:
Post a Comment