-->
当前位置:首页 > 题库

PROGRAMMING:Affinity number pair

Luz5年前 (2021-05-10)题库415
The program reads in two positive integers a and B and outputs all affinity pairs in the interval [a, b]. The meaning of affinity number pair is a pair of integers m and N, satisfying that the sum of true divisors of M is equal to N, and the sum of true divisors of n is equal to M. Be sure to pay attention to the data range shown in the output sample.
###Input format:
Two positive integers a and B (2 < a < B < 20000).
###Output format:
Output all pairs of affinity numbers in [a, b] interval, one to one line
###Input example:
```in
2 10000
```
###Output example:
```out
220,284
1184,1210
2620,2924
5020,5564
6232,6368
```
###Input example:
```in
1200 5050
```
###Output example:
```out
2620,2924
```
###Input example:
```in
10000 20000
```
###Output example:
```out
10744,10856
12285,14595
17296,18416
```







answer:If there is no answer, please comment