|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|1 초||256 MB||97||81||77||83.696%|
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.
3 H = 0.001 OH = 0.001 H = 0.012
3.00 11.00 1.92