Practice School-> Winning Strategy

Below is the Java code:
https://www.codechef.com/viewsolution/37018715

Below is the C++ code:
https://www.codechef.com/viewsolution/37018744

They give the Desired Output but The System Won’t Take it in. I tested it on Random Values too. But no luck.

Please Help.

Consider the test input:

1
2
1 1

and then read this :slight_smile:

2 Likes

as soon as i read your comment . the brain started ringing.haha… thanks .

1 Like