Files
Hydro/examples/testdata/Special Judge/chk.cc
T
2021-05-20 22:59:50 +08:00

15 lines
372 B
C++

#include "testlib.h"
#include <cmath>
int main(int argc, char *argv[]) {
/*
* inf:输入
* ouf:选手输出
* ans:标准输出
*/
registerTestlibCmd(argc, argv);
double pans = ouf.readDouble(), jans = ans.readDouble();
if (pans == jans) quitf(_ok, "Good job\n");
else quitf(_wa, "Too big or too small, expected %f, found %f\n", jans, pans);
}