Question(A-B Game): https://www.codechef.com/problems/ABGAME
My solution: https://www.codechef.com/viewsolution/21669969
Not getting which test case lead to WA for my solution
Question(A-B Game): https://www.codechef.com/problems/ABGAME
My solution: https://www.codechef.com/viewsolution/21669969
Not getting which test case lead to WA for my solution
Try this A…BA…B Your output produces B (https://ideone.com/UtEyxE) But Ans should be A. How:Second A moves one step instead of all three and then u can see you will be in a situation such that A will win.