Finding numbers
Practice
2.6 (9 votes)
Medium
Algorithms
Problem
11% Success 5625 Attempts 30 Points 3s Time Limit 256MB Memory 1024 KB Max Code
Alice has just learnt multiplying two integers. He wants to multiply two integers X and Y to form a number Z. To make the problem interesting he will choose X in the range [1,M] and Y in the range [1,N]. Help him to find the number of ways in which he can do this.
Input
First line of the input is the number of test cases T. It is followed by T lines. Each line has three space separated integers, the numbers Z, M and N.
Output
For each test case output a single integer, the number of ways.
Constraints
1 <= T <= 50
1 <= Z <= 10^12
1 <= M <= 10^12
1 <= N <= 10^12
Submissions
Please login to view your submissions
Similar Problems
Points:30
1 votes
Tags:
MathematicsMediumOpenApproved
Points:30
4 votes
Tags:
MathematicsMediumOpenApprovedNumber Theory
Points:30
Tags:
Medium
Editorial