WA in CHANDF

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

Can someone please help me out to find out the problem in this question of may long challenge 2020.
I am unable to identify the missing edge case since many days

I could only find one mistake:

if(x==0 or y==0):
            print(0)

if x or y is equal to 0, you are printing 0. but what if L>0
You need to print L instead in this case because 0 is not always within the range of L and R

1 Like

Thank you very much.
I totally missed out that thing,
But still, there is something else also that I am missing, because still the verdict remains WA

1 Like

I’m sorry but I myself was unable to solve subtask 2 and 3 of this question.
You should take a look at the EDITORIAL

1 Like