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

PROGRAMMING:You you Xuejie's new marriage

Luz5年前 (2021-05-10)题库445
Youyou Xuejie is finally going to get married, and interestingly, there are n couples getting married at the same time that day, so we are going to choose the happiest couple. How to choose? The happiness of each couple = the least common multiple of the age of the bridegroom and the age of the bride (which tells us that if we get married too early, we will support family planning if we are unhappy). For the sake of fairness, we decided to list all the results. can you help me?
###Input format:
There are several groups of test data, which are processed to the end of the file. Input an n (< 500) in the first line, and input two numbers a and B (0 < a < B < 1000) in the next N lines( What's wrong with youYou.
###Output format:
From big to small, output the age and happiness of bridegroom and bride.
###Input example:
Here is a set of inputs. For example:
```in
five
10 9
15 65
10 3
20 16
51 20
```
###Output example:
The corresponding output is given here. For example:
```out
51 20 1020
15 65 195
10 9 90
20 16 80
10 3 30
```







answer:If there is no answer, please comment