提供spj
查看原帖
提供spj
601639
fkcufk楼主2023/9/11 18:19
#include "testlib.h"
#include "bits/stdc++.h"

int main(int argc, char* argv[]) {
    registerTestlibCmd(argc, argv);

    while(!ans.eof()){
        float pans = ouf.readDouble();
        float jans = ans.readDouble();
        ans.readEoln();

        if (fabs(pans - jans) > 0.001)
            quitf(_wa, "The answer is wrong: expected = %f, found = %f", jans, pans);

    }
    quitf(_ok, "The answer is correct.");
    return 0;

}
2023/9/11 18:19
加载中...