WA in PSHOT

Hi guys, I’m getting WA in PSHOT, I don’t know which test case is failing, I’m getting correct output for the sample input given as well. Can someone help me out please.
https://www.codechef.com/viewsolution/33427065
Thanks.

Why are you checking condition that if any one of them have scored more or equal to n. This will not work. You may see my code CodeChef: Practical coding for everyone

1 Like