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

PROGRAMMING:Can you really save me?

Luz5年前 (2021-05-10)题库374
>Due to special reasons, the following questions do encryption processing, understand all understand.
The leader of Hunyuan Taiji sect, ma * Guo, has entered the wangzhe gorge. His unique skill is lightning and whip. He can not only damage explosions, but also critically strike five times in a row, becoming an ad killer at one stroke.
Without any equipment, Comrade Ma's damage per time is $$a $, and the health of opposite ad is $$B $. Now Comrade Ma plans to put on a costume, he plans to put on a full critical hit costume, so he wants to know, when the critical hit rate reaches how much, can he have a 90 $$% probability to drop ad per second? When the amount of blood is $$0 $, it can be judged as death.
$$$$
69 year old comrades, please help him to calculate at least how many critical hit rate can have the probability of 90 $$% per second.
Note that when the critical hit rate is $$p $, each attack has a probability critical hit of $$p $. The critical damage of this problem is $$2.0 $$times that of ordinary attack.
###Input format:
The first line gives the number of sample groups $$t (1 < = T < = 100)$$
The next $$t $$line, each line gives two positive integers $$a, B (1 < = a, B < = 10 ^ 8)$$
###Output format:
For each group of input data, if ad has a probability of being dropped by 90 $$%, please output the minimum critical hit rate in one line and reserve two decimal places (round off); Otherwise, please output "hzwz" in one line without quotation marks.
###Input sample 0:
Here is a set of inputs. For example:
```in
four
2 20
2 21
2 10
2 15
```
###Output sample 0:
The corresponding output is given here. For example:
```out
ninety-seven point nine one
HZWZ
zero
seventy-five point three four
```







answer:If there is no answer, please comment