In the problem, https://www.codechef.com/problems/CHEFRES, I solved it using offline method but this submission https://www.codechef.com/viewsolution/20377198 gave wrong answer for subtask 2 while https://www.codechef.com/viewsolution/20405364 gives AC.
Can someone clarify me, @vijju123, why the first solution is failing and suggest some test case for the same.
Thanks in advance.
Same thing is happening with my code.
It is giving wrong answer on subtask 2 on this submission
when I have decreased the value of end point of each interval by 1 as it is exact closing time of restaurant, so any person coming on this particular time has to wait.
But by not decreasing the value of end point of each interval by 1, and not considering that point, is giving AC.
Link of the AC code
So please, can someone clarify us, where the first solution is failing. Thanks…