Help in AMSGAME2

I haev worked on the code and it is working on all the random cases i put in.
Still gives a WA.
Here is my solution:
https://www.codechef.com/viewsolution/30740438

https://www.codechef.com/viewsolution/30753873

long long dp

1 Like