Page 2 of 2

Posted: Fri Aug 12, 2005 6:48 pm
by Jan
You said ...
2- I try all the posibilities for the garbled number, add bars. Step 4
Are u sure u did that correctly??

I think no. Just try the following test cases.

Input:

Code: Select all

10
    _  _     _  _  _  _  _
  | _| _||_||_ |_   ||_||_|
  | _  _|  | _||_|  ||_| _|
    _  _  _  _  _  _     _
|_||_|| || ||_   |  |  ||_ 
  | _||_||_||_|  |  |  | _|
 _  _  _  _  _  _  _  _  _
|_||_||_||_||_||_||_||_||_|
|_||_||_||_||_||_||_||_||_|
 _     _  _  _  _  _  _  _
|_|  ||_||_||_||_||_||_||_|
|_|  ||_||_||_||_||_||_||_|
    _  _     _  _  _  _  _
  | _| _||_||_ |_   ||_||_|
  ||_  _|  | _||_|  ||_| _|
 _  _  _  _  _  _  _  _  _
| || || || || || || || || |
|_||_||_||_||_||_||_||_||_|
    _     _  _  _     _ 
  ||_|  | _|  | _|  |  |  |
  | _|  ||_   | _|  |  |  | 
    _     _  _  _     _ 
  |  |  | _|  | _|  |  |  |
  | _|  ||_   | _|  |  |  | 
    _     _  _  _     _ 
  ||_|  | _|  | _|  |  |  |
  | _|  ||_   |  |  |  |  | 
    _  _  _     _  _  _  _
  ||_|  | _||_|  |  | _||_ 
  ||_|  | _|  |  |  | _| _|
Output:

Code: Select all

123456789
ambiguous
failure
878888888
123456789
000000000
191273171
191273171
191273171
187347735
Hope it works. :)

Posted: Fri Aug 12, 2005 11:03 pm
by Emilio
Thanks a lot Jan.

In one second was solved. I only needed delete a part of a line. I think that a bad understanding or I don't know why was doing that in my code. :D

Thanks a lot another time!!!

Posted: Thu Dec 20, 2007 1:59 pm
by Samiul
My accepted program does not handle either 2nd or 3rd case and it is said in the probem statement that there will be no extra segment and at most one digit will be garbled. So, don't worry about them.

But be careful about output like "001234567".

Re: critical input output of 433

Posted: Mon Dec 05, 2011 1:19 am
by brianfry713
For some reason the forum software isn't displaying this correctly for me. I had to add a space to the front of the first line of input to make it line up correctly.
Also the sample input in the problem statement is missing some trailing spaces.