1181 - Rubik's Cube

All about problems in Volume 11. 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
sabbir_alam_ufo
New poster
Posts: 16
Joined: Fri Nov 15, 2013 9:33 pm

1181 - Rubik's Cube

Post by sabbir_alam_ufo » Fri Nov 07, 2014 9:29 am

Getting WA. Don't know why. Please Help.

Code: Select all

Code Removed.
Last edited by sabbir_alam_ufo on Wed Dec 24, 2014 4:56 am, edited 1 time in total.

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

Re: 1181 - Rubik's Cube

Post by brianfry713 » Tue Nov 18, 2014 11:44 pm

Print a blank line between two successive test cases. Don't print an extra blank line at the end.
Check input and AC output for thousands of problems on uDebug!

sabbir_alam_ufo
New poster
Posts: 16
Joined: Fri Nov 15, 2013 9:33 pm

Re: 1181 - Rubik's Cube

Post by sabbir_alam_ufo » Mon Dec 22, 2014 12:08 pm

Still WA.

Code: Select all

Code Removed After AC.
Last edited by sabbir_alam_ufo on Wed Dec 24, 2014 4:56 am, edited 1 time in total.

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

Re: 1181 - Rubik's Cube

Post by brianfry713 » Tue Dec 23, 2014 10:41 pm

Change:
int top_face[7],bottom_face[7],right_face[7],left_face[7],front_face[7],back_face[7];
to:
int top_face[9],bottom_face[9],right_face[9],left_face[9],front_face[9],back_face[9];
Check input and AC output for thousands of problems on uDebug!

sabbir_alam_ufo
New poster
Posts: 16
Joined: Fri Nov 15, 2013 9:33 pm

Re: 1181 - Rubik's Cube

Post by sabbir_alam_ufo » Wed Dec 24, 2014 4:53 am

Thanks brianfry713 !!! :) :)

Post Reply

Return to “Volume 11 (1100-1199)”