这题卡精度。 如果你一直 WA 而对拍没有发现任何问题,建议替换 double 为 long double。 P.S. long double 对应 %Lf。
double
long double
%Lf