cout.precision
Hint
In C++ language, cout.precision is used to set the effective numbers of output.
You may use it in the program. E.g.
cout.precision(15)
.
In C language, format "%.2lf" may be used
在JOJ 1001的hint中看到的,这样就可以提高cout的精度
In C++ language, cout.precision is used to set the effective numbers of output.
You may use it in the program. E.g.
cout.precision(15)
.
In C language, format "%.2lf" may be used
在JOJ 1001的hint中看到的,这样就可以提高cout的精度