Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Their 'badnesses' are not the same

Posted by xiedi at 2007-04-21 19:53:47 on Problem 1093
In 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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator