12280 - A Digital Satire of Digital Age

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

Moderator: Board moderators

Post Reply
animesh_programmer
New poster
Posts: 2
Joined: Mon Aug 22, 2011 12:45 pm

12280 - A Digital Satire of Digital Age

Post by animesh_programmer »

I get WA on it........
but i check for all input , i can not get anything wrong......
please give some input......... :oops:

outsbook
New poster
Posts: 26
Joined: Fri Oct 28, 2011 2:42 am

Re: 12280

Post by outsbook »

try this:
Input

Code: Select all

4 
........||.../\... 
........||../..\.. 
.../\...||./....\. 
../..\..||/G.....\ 
./.Q..\.||\______/ 
/Y.YFU.\||........ 
\______/||........ 
------------------
.../\...||........ 
../..\..||........ 
./....\.||.../\... 
/WCGQG.\||../A.\.. 
\______/||./Y...\. 
........||/O.....\ 
........||\______/ 
------------------
.../\...||........ 
../A.\..||........ 
./....\.||.../\... 
/......\||../..\.. 
\______/||./....\. 
........||/A.....\ 
........||\______/ 
------------------
........||........ 
.../\...||.../\... 
../AB\..||../KL\.. 
./CDEF\.||./ABCD\. 
/GHIJKL\||/EFGHIJ\ 
\______/||\______/ 
........||........ 
------------------
Output

Code: Select all

Case 1: 
The figure is correct. 
Case 2: 
........||.../\... 
........||../A.\.. 
.../\...||./Y...\. 
../..\..||/O.....\ 
./....\.||\______/ 
/WCGQG.\||........ 
\______/||........ 
Case 3: 
........||........ 
.../\...||.../\... 
../A.\..||../..\.. 
./....\.||./....\. 
/......\||/A.....\ 
\______/||\______/ 
........||........ 
Case 4: 
The figure is correct.
"Learning to love yourself is the greatest love of all" - Michael Masser and Linda Creed

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 12280

Post by brianfry713 »

outsbook, none of your test cases match the problem description. My AC code would not handle any of them.

The weights on both pans are placed just above the row that denotes bottom of the pan and they are left justified. There can be maximum 6 weights on a single pan.
Check input and AC output for thousands of problems on uDebug!

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 12280

Post by brianfry713 »

Input:

Code: Select all

20
........||.../\...
........||../..\..
.../\...||./....\.
../..\..||/G.....\
./....\.||\______/
/FATJG.\||........
\______/||........
------------------
........||........
.../\...||.../\...
../..\..||../..\..
./....\.||./....\.
/OAZLG.\||/HE....\
\______/||\______/
........||........
------------------
........||.../\...
........||../..\..
.../\...||./....\.
../..\..||/L.....\
./....\.||\______/
/MVWU..\||........
\______/||........
------------------
........||........
.../\...||.../\...
../..\..||../..\..
./....\.||./....\.
/......\||/M.....\
\______/||\______/
........||........
------------------
........||.../\...
........||../..\..
.../\...||./....\.
../..\..||/BHYBGM\
./....\.||\______/
/RQBCWL\||........
\______/||........
------------------
........||........
.../\...||.../\...
../..\..||../..\..
./....\.||./....\.
/TNZDCU\||/YCMM..\
\______/||\______/
........||........
------------------
........||.../\...
........||../..\..
.../\...||./....\.
../..\..||/IYT...\
./....\.||\______/
/......\||........
\______/||........
------------------
........||........
.../\...||.../\...
../..\..||../..\..
./....\.||./....\.
/......\||/XNEYUD\
\______/||\______/
........||........
------------------
........||.../\...
........||../..\..
.../\...||./....\.
../..\..||/KYDPCA\
./....\.||\______/
/PK....\||........
\______/||........
------------------
........||........
.../\...||.../\...
../..\..||../..\..
./....\.||./....\.
/ECPZT.\||/JTJK..\
\______/||\______/
........||........
------------------
........||.../\...
........||../..\..
.../\...||./....\.
../..\..||/IL....\
./....\.||\______/
/......\||........
\______/||........
------------------
........||.../\...
........||../..\..
.../\...||./....\.
../..\..||/SOTSTI\
./....\.||\______/
/QIJ...\||........
\______/||........
------------------
........||.../\...
........||../..\..
.../\...||./....\.
../..\..||/OYY...\
./....\.||\______/
/AXZ...\||........
\______/||........
------------------
.../\...||........
../..\..||........
./....\.||.../\...
/TOUO..\||../..\..
\______/||./....\.
........||/DYHMFZ\
........||\______/
------------------
........||........
.../\...||.../\...
../..\..||../..\..
./....\.||./....\.
/HO....\||/CJA...\
\______/||\______/
........||........
------------------
........||........
.../\...||.../\...
../..\..||../..\..
./....\.||./....\.
/VLEXQS\||/OYFJ..\
\______/||\______/
........||........
------------------
.../\...||........
../..\..||........
./....\.||.../\...
/YIG...\||../..\..
\______/||./....\.
........||/R.....\
........||\______/
------------------
........||........
.../\...||.../\...
../..\..||../..\..
./....\.||./....\.
/......\||/OWBDCE\
\______/||\______/
........||........
------------------
........||.../\...
........||../..\..
.../\...||./....\.
../..\..||/A.....\
./....\.||\______/
/R.....\||........
\______/||........
------------------
........||........
.../\...||.../\...
../..\..||../..\..
./....\.||./....\.
/XUUUI.\||/CSHFSR\
\______/||\______/
........||........
------------------
AC output:

Code: Select all

Case 1:
The figure is correct.
Case 2:
........||.../\...
........||../..\..
.../\...||./....\.
../..\..||/HE....\
./....\.||\______/
/OAZLG.\||........
\______/||........
Case 3:
The figure is correct.
Case 4:
.../\...||........
../..\..||........
./....\.||.../\...
/......\||../..\..
\______/||./....\.
........||/M.....\
........||\______/
Case 5:
The figure is correct.
Case 6:
........||.../\...
........||../..\..
.../\...||./....\.
../..\..||/YCMM..\
./....\.||\______/
/TNZDCU\||........
\______/||........
Case 7:
.../\...||........
../..\..||........
./....\.||.../\...
/......\||../..\..
\______/||./....\.
........||/IYT...\
........||\______/
Case 8:
.../\...||........
../..\..||........
./....\.||.../\...
/......\||../..\..
\______/||./....\.
........||/XNEYUD\
........||\______/
Case 9:
.../\...||........
../..\..||........
./....\.||.../\...
/PK....\||../..\..
\______/||./....\.
........||/KYDPCA\
........||\______/
Case 10:
........||.../\...
........||../..\..
.../\...||./....\.
../..\..||/JTJK..\
./....\.||\______/
/ECPZT.\||........
\______/||........
Case 11:
.../\...||........
../..\..||........
./....\.||.../\...
/......\||../..\..
\______/||./....\.
........||/IL....\
........||\______/
Case 12:
.../\...||........
../..\..||........
./....\.||.../\...
/QIJ...\||../..\..
\______/||./....\.
........||/SOTSTI\
........||\______/
Case 13:
.../\...||........
../..\..||........
./....\.||.../\...
/AXZ...\||../..\..
\______/||./....\.
........||/OYY...\
........||\______/
Case 14:
The figure is correct.
Case 15:
.../\...||........
../..\..||........
./....\.||.../\...
/HO....\||../..\..
\______/||./....\.
........||/CJA...\
........||\______/
Case 16:
........||.../\...
........||../..\..
.../\...||./....\.
../..\..||/OYFJ..\
./....\.||\______/
/VLEXQS\||........
\______/||........
Case 17:
........||.../\...
........||../..\..
.../\...||./....\.
../..\..||/R.....\
./....\.||\______/
/YIG...\||........
\______/||........
Case 18:
.../\...||........
../..\..||........
./....\.||.../\...
/......\||../..\..
\______/||./....\.
........||/OWBDCE\
........||\______/
Case 19:
The figure is correct.
Case 20:
.../\...||........
../..\..||........
./....\.||.../\...
/XUUUI.\||../..\..
\______/||./....\.
........||/CSHFSR\
........||\______/
Check input and AC output for thousands of problems on uDebug!

Post Reply

Return to “Volume 122 (12200-12299)”