One tesst case shows wa and one passed
@Krishna-Singh-2678805765519156
Hey, your code fails on input:
4
4 5
5 10
11 5
15 12
25 10
answer is 2 but your output is 1. try to dry run your code with this
@Krishna-Singh-2678805765519156
Hey, your code fails on input:
4
4 5
5 10
11 5
15 12
25 10
answer is 2 but your output is 1. try to dry run your code with this