• + 0 comments

    For people using c++, change the output line to: fout << std::setprecision (18) << result << "\n";

    otherwise, the default precision does not meet the criteria in many of the test cases.