add more testdata examples

pull/148/head
undefined 3 years ago
parent 26ded9d5df
commit dd9dd49b02

@ -0,0 +1,14 @@
#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);
}

@ -0,0 +1,3 @@
type: default
checker_type: testlib
checker: chk.cc
Loading…
Cancel
Save