You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hydro/examples/testdata/Special Judge/chk.cc

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);
}