#P1524. 2019
2019
Problem Description
Given a, b, c, d, find out the number of pairs of integers (x, y) where a≤x≤b,c≤y≤d and x⋅y is a multiple of 2019.* 1<=a<=b<=109 ,1<=c<=d<=109 .
* The number of tests cases does not exceed 104
Input Format
The input consists of several test cases and is terminated by end-of-file.Each test case contains four integers a, b, c, d.
Output Format
For each test case, print an integer which denotes the result.1 2 1 20192