_Comfortably_Numb__'s blog

By _Comfortably_Numb__, history, 6 years ago, In English

In problem 937C - Save Energy!, my accepted code's 36137732 output differs from jury's answer on test case 27. But cf compiler gives ok verdict. Then I checked some other AC code. All AC code gives the same output as mine in that case. So what's the actual problem?

»
6 years ago, # |
  Vote: I like it +4 Vote: I do not like it

Relative error of your output obviously didn't exceed 1e-9.So it is correct.

  • »
    »
    6 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thanks.

  • »
    »
    6 years ago, # ^ |
    Rev. 2   Vote: I like it -9 Vote: I do not like it

    It's 0.5, obviously exceeds 1e-9, Also what's happening on test 26?! really weird.

    • »
      »
      »
      6 years ago, # ^ |
        Vote: I like it +4 Vote: I do not like it

      We're talking about RELATIVE error. It always writes in the statement:

      "Namely, let's assume that your answer is x and the answer of the jury is y. The checker program will consider your answer correct if ."

      Note the division.