Https://www.codechef.com/viewsolution/46644069

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

please review my code all my random input passed but it is wrong answer after submitting … please tell my mistake.

regards

Consider the test input:

1
100 96 5
1 Like

Sir,
I have tried your test case and it is showing “no” . And using another successful code , it is showing “yes” .but 96 is not the multiple of 5 . So, how it is showing “yes”. Thank you for your help.
Regards

1 Like

96=(N+1)-k

1 Like

Thank you so much sir for your guidance…
I got your point of view.

1 Like