pointsinfo.cpp 383 B

1234567891011121314
  1. #include "testlib.h"
  2. using namespace std;
  3. int main(int argc, char *argv[]) {
  4. setName("example of checker with points_info");
  5. registerTestlibCmd(argc, argv);
  6. double pa = ouf.readDouble();
  7. double ja = ans.readDouble();
  8. string points_info = "pa=" + to_string(pa) + ",ja=" + to_string(ja);
  9. quitpi(points_info, "d=" + to_string(abs(ja - pa)));
  10. }