Given a, b, c, d, find out the number of pairs of integers where a≤x≤b,c≤y≤da leq x leq b, c leq y leq da≤x≤b,c≤y≤d and xyx cdot yxy is a multiple of 2018.
Given a, b, c, d, find out the number of pairs of integers (x, y) where a≤x≤b,c≤y≤da leq x leq b, c leq y leq da≤x≤b,c≤y≤d and x⋅yx cdot yx⋅y is a multiple of 2018.
(图片来源网络,侵删)