Chia Hết

PDF

Submit solution

Points: 10.00
Time limit: 1.0s
Memory limit: 64M
Input: stdin
Output: stdout

Authors:
Problem types
Allowed languages
C, C++, Java, Pascal, Python, Scratch, TEXT

Yêu cầu

Nhập vào hai số nguyên ~L~, ~R~. Tìm tất cả các cặp số ~x~, ~y~ ~(x < y)~ trong đoạn ~[L,R]~ sao cho ~y~ chia hết cho ~x~.

Dữ liệu

Một dòng duy nhất, gồm hai số nguyên ~L~, ~R~ ~(0 < L < R \le 10^3)~.

Kết quả

Ghi ra số cặp ~x~, ~y~ tìm được.

Input

1 4

Output

4

Giải thích

Các cặp số ~(x,y)~ bao gồm ~(1,2)~, ~(1,3)~, ~(1,4)~, ~(2,4)~.


Comments

Please read the guidelines before commenting.


There are no comments at the moment.