https://vjudge.net/contest/271273#problem/A
哎,后面有个四舍五入的问题。
if( (int) (right * 1000) % 10 >= 5) right -= 0.005; printf("%.2f\n", right);
.2f是默认四舍五入的,上面一段代码是取消四舍五入。
二分。三分
原文:https://www.cnblogs.com/downrainsun/p/9986634.html