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

PROGRAMMING:Best couple height difference

Luz5年前 (2021-05-10)题库382
Experts found that the height difference of the best couple follows a formula: the height of the woman, 1.09 = (the height of the man). If so, the height difference between you, whether it's holding hands, hugging, kissing, is the most harmonious difference.
Now please write a program to calculate the best height for any user.
###Input format:
Enter the first line to give a positive integer $$n $$($$Le 10 $$), which is the number of users coming to query. Next, $$n $$line, each line gives the gender and height of the user who comes to query according to the format of "gender and height", where "gender" is "F" for female and "m" for male“ Height "is a real number in the interval [1.0, 3.0].
###Output format:
For each query, calculate the best height of the couple for the user in one line, and reserve 2 decimal places.
###Input example:
```in
two
M 1.75
F 1.8
```
###Output example:
```out
one point six one
one point nine six
```






answer:If there is no answer, please comment