关于输出的答案

P10450 [USACO03MAR] Best Cow Fences G

Atri_Lobato @ 2024-05-30 17:15:25

double erfen(double left,double right)
{
    while(right-left>=precisity)
    {
        ...
    }
    return left;
}

会错,改成

double erfen(double left,double right)
{
    while(right-left>=precisity)
    {
        ...
    }
    return right;
}

就AC了,调精度也没用,为什么?


by 紫玄月 @ 2024-07-18 22:28:24

比较玄学的问题,可以看楼上讨论


|