i wrote a code for problem [Chef and Table Tennis][1] and it is showing right answer for all examples given in question but whenever i submit this code in codechef i get Result = ‘wrong answer’.
HERE IS MY **
[2]**
Logic which i used is that i found what are the ways in which chef can win.
1)he can win if he scores greater than 10 and his opponent score less than 10
2)he can win if he score greater than 10 and his opponent score greater than 9 and chef also score 2 more than his opponent
3)else chef loss
Please Help Thanks in advance
hoping for answer
[1]: https://www.codechef.com/problems/TTENIS
[2]: https://www.codechef.com/viewsolution/18658824