#include "testlib.h"

int main(int argc, char* argv[]) {
    registerTestlibCmd(argc, argv);
    double pans = ouf.readDouble();
    double jans = ans.readDouble();

    if (fabs(pans - jans)<1e-3)
        quitf(_ok, "The answer is correct.");
    else
        quitf(_wa, "The answer is wrong: expected = %f, found = %f", jans, pans);
}

1 条评论

  • 1

信息

ID
3993
时间
1000ms
内存
256MiB
难度
9
标签
(无)
递交数
9
已通过
6
上传者