Please enter your email address or userHandle.
Given two given numbers a and b where 1<=a<=b, find the perfect cubes between a and b (a and b inclusive).
First line of input contains number of test cases T. Each line of test case contain numbers 'a' and 'b' separated by a single space.
Perfect cubes between a & b are displayed. If there are no perfect cubes between a & b then print "No".
1 <= T <= 50
1 <= a <= b <= 10000
1 8 27 64
27 64 125 216 343 512
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Login to access your submissions.
Please choose 'ReadOnlyMode' if you needn't to 'Edit' the problem e.g. viewing OJ's solution, TestCase Files (TCFs), TimeLimit etc.