CPLAY - Penalty Shoot-Out WA

PROBLEM LINK

Practice(Easy)
Contest

My Solution

my solution

Can you tell what the error is in my code? It gives WA
I’ve tried debugging once, but it might be an error in the understanding of the question maybe
Please explain

1 Like

Pls Help

1 Like

For even sample TC your output is not correct

Try reading the editorial

https://discuss.codechef.com/problems/CPLAY