시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 256 MB21418417986.058%

문제

There is no longer a STAAR test in chemistry—the pressure is off! You can just learn chemistry for the sheer fun of learning about the natural world (and to prepare for college)! Celebrating this fact, let’s do a program on acids, bases, and pH.

The pH of a solution is a measure of the ionization of water to form H+(acids) or OH-(bases).

There are four important variables (pH, pOH, H+, and OH-) and two important equations:

pH = - log(H+)

pOH = - log(OH-)

Here the logs are logs base 10. The variables pH and pOH are also related by the equation:

pH + pOH = 14

입력

The first line consists of the number of data sets. Each data set has either the H (representing H+) or OH (representing OH-) concentration.

출력

Print out the pH rounded to the nearest hundredth.

예제 입력 1

3
H = 0.001
OH = 0.001
H = 0.012

예제 출력 1

3.00
11.00
1.92