_Comfortably_Numb__'s blog

By _Comfortably_Numb__, history, 7 years ago, In English

In problem 937C - Экономим энергию!, 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?

»
7 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.

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

    Thanks.

  • »
    »
    7 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.

    • »
      »
      »
      7 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.