12280

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

Moderator: Board moderators

12280

Postby animesh_programmer » Thu Oct 27, 2011 9:27 pm

I get WA on it........
but i check for all input , i can not get anything wrong......
please give some input......... :oops:
animesh_programmer
New poster
 
Posts: 2
Joined: Mon Aug 22, 2011 12:45 pm

Re: 12280

Postby outsbook » Sat Nov 12, 2011 11:36 am

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
User avatar
outsbook
New poster
 
Posts: 26
Joined: Fri Oct 28, 2011 2:42 am

Re: 12280

Postby brianfry713 » Thu Mar 08, 2012 1:07 am

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

Re: 12280

Postby brianfry713 » Wed Jan 22, 2014 10:19 pm

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\
........||\______/
brianfry713
Guru
 
Posts: 3490
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA


Return to Volume CXXII

Who is online

Users browsing this forum: No registered users and 1 guest