433 - Bank (Not Quite O.C.R.)

All about problems in Volume 4. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Jan
Guru
Posts: 1334
Joined: Wed Jun 22, 2005 10:58 pm
Location: Dhaka, Bangladesh
Contact:

Post 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. :)
Ami ekhono shopno dekhi...
HomePage
Emilio
Experienced poster
Posts: 163
Joined: Sun Oct 17, 2004 8:31 pm
Location: Murcia, Spain

Post 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!!!
Samiul
New poster
Posts: 36
Joined: Thu Dec 13, 2007 3:01 pm

Post 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".
brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: critical input output of 433

Post 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.
Check input and AC output for thousands of problems on uDebug!
Post Reply

Return to “Volume 4 (400-499)”