problem with testlib.h readDouble

Revision en2, by BluoCaroot, 2024-04-30 04:58:18

I was writing a problem on polygon and I came across a problem with the std::rcmp9 checker.

Whenever the output doesn't fit in a double variable it gives AC verdict even if the relative error is greater than 1e-9

I tried making my own version and reading the numbers as strings and then casting them as ld and making ld variations of the check functions but the same thing happens and I can't get correct verdicts, could anyone suggest any solutions?

Tags polygon, testlib.h, std::rcmp, double accuracy

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English BluoCaroot 2024-04-30 04:58:18 75 added image
en1 English BluoCaroot 2024-04-30 04:56:37 489 Initial revision (published)