You have been a number K , l , r , x and y . you have to tell if there exist two numbers a and b , such that a/b=K , where a lies between l and r , both inclusive and b lies between x and y , both inclusive . If such a and b exist then print “YES” otherwise print “NO”.
First line contains T , indicating number of test cases . Only line of every test case consists of 5 integers K, L, R, X, Y.
Single line output, print “YES” if such a and b exists else “NO”.
1 1 10 1 10
1 1 5 6 10
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.