pointsinfo.cpp 412 B

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