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 »

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 »

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 »

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 »

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 »

Thanks brianfry713 !!! :) :)
Post Reply

Return to “Volume 11 (1100-1199)”