| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Their 'badnesses' are not the sameIn Reply To:Calrification needed. Posted by:bvssatish at 2007-04-21 18:29:59 The description of the output is:
If there are several ways to format a paragraph with the same badness, use
~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
the following algorithm to choose which one to output: Let A and B be two
solutions. Find the first gap which has not the same length in A and B. Do
not output the solution in which this gap is bigger.
> In the problem statement the answer for the first example is not correct according to problem definition.
>
> For Input Text
> ==============
> 28
> This is the example you are
> actually considering.
>
> Solution given is in output is
> ==============================
> This is the example you
> are actually considering.
>
> The best solution according to rule
> "Let A and B be two solutions. Find the first gap which has not the same length in A and B. Do not output the solution in which this gap is bigger. " is
> ===============================
> This is the example you are
> actually considering.
>
> Was my assumption correct?
>
> Please clarify.
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator