Блог пользователя Austere7

Автор Austere7, история, 4 года назад, По-английски

In the contest my code passed the pretests and i have been rated accordingly but afterwards again submitting the same sol, my code fails ....when i check for the test case it is authentic and logic should fail, but the test case 32&33 was not their in contest pretest , it was added after the contest was over..Hence degrade the authenticity of contest and it's parity...if it was a hacked test case added by someone accordingly it should be reflected on everyone's, making it a really fair game.

One of the test case that fails

3 2

3 10 128

130 137

for this the correct ans is 130 but my code gives 131.

but it passes all the pretests in contest and accepted. if needed i will show my code.

  • Проголосовать: нравится
  • +9
  • Проголосовать: не нравится

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Did you or the other people had some type of greedy in their algorithm, because the problem is mainly brute force, I wonder what is making lots of people code fail?

  • »
    »
    4 года назад, # ^ |
      Проголосовать: нравится +8 Проголосовать: не нравится

    actually many of them have the same greedy approach and their code gets accepted during the contest but after the contest if you submit the same code again, it fails.

»
4 года назад, # |
  Проголосовать: нравится +11 Проголосовать: не нравится

Pretests passed does not mean that your solution is necessarily correct.

»
4 года назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

If it appears not in system test (you said you have rated accordingly) but only after the contest, this is probably because of uphacking (high-rated users can hack solutions within 7 days after the end of a codeforces round). In this case, no contestants will be affected so it is still kind of "fair". (Well you can still say it is unfair as system tests cannot screen out all wrong submissions)

  • »
    »
    4 года назад, # ^ |
      Проголосовать: нравится +8 Проголосовать: не нравится

    YES, NewAccelWorld, there are many including me, whose code gets accepted and rated accordingly but it was actually a wrong submission.. it is not fair for the ones having the actual correct solution