|
||||||||||
X mod f(x)Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5431 Accepted Submission(s): 1946 Problem Description Here is a function f(x): Now, you want to know, in a given interval [A, B] (1 <= A <= B <= 109), how many integer x that mod f(x) equal to 0. Input The first line has an integer T (1 <= T <= 50), indicate the number of test cases. Each test case has two integers A, B. Output For each test case, output only one line containing the case number and an integer indicated the number of x. Sample Input
Sample Output
Author WHU Source | ||||||||||
|