WA in "Chef And his Cake" (GIT01)

problem link: GIT01 Problem - CodeChef
my code CodeChef: Practical coding for everyone

That’s not your submission link.

1 Like

I have updated it . plz look into it

Try

1
2 3
RGR
RGR
1 Like

Try drawing a 2*3 grid and tell me how many valid configurations you were able to find.

output is coming 0

i get it that i can solve it by making a matrix but is there a way to solve the problem without forming a matrix?

Did you at least try this?

3 Likes

yeah i got it thanks…

1 Like