提示
建议输出至少 888 位有效数字。
请使用
printf("%.8lf\n", ans);
或
std::cout << std::setiosflags(std::ios::fixed); std::cout << std::setprecision(8) << ans << '\n';