cout precision

 

problem

while sovlving BOJ 1008,
floating point precision that cout prints were not precise enough to meet the problem’s precision condition

solution

according to cout precision,
the default precision for cout is 6 -> set it to 10 to meet the problem’s condition