Codeforces и Polygon могут быть недоступны в период с 6 декабря, 22:00 (МСК) по 7 декабря, 00:00 (МСК) в связи с проведением технических работ. ×

Блог пользователя -is-this-fft-

Автор -is-this-fft-, история, 5 лет назад, По-английски

Hi.

Sometimes I use Codeforces groups for private trainings. On occassion, this means importing (via Polygon) problems from some other contests (that have public test data and are free to be used like that).

But when importing test cases "from the files" or "from the archive", this happens a lot:
(By the way I have no idea why it happens so frequently. My best guess is sometimes that OI-style contests have to repeat test cases in different subtasks. But I have also seen this with ICPC-style.)

Anyway, my question is:

  • Why does Polygon even care if there are multiple equal tests? It doesn't seem to care if there are two equal tests from generators.
  • Why does it only show one error at a time, and a seemingly random pair at that (It doesn't seem like it is the "lexicographically smallest" pair)?
  • Can I somehow turn this validation off? There are some (probably more important) checks that you can turn off.

(I guess I should be smarter and write a local script to remove the duplicates).

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

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

It doesn't seem to care if there are two equal tests from generators.

no, cares, when you press commit

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

There is a similar warning for Polygon-generated tests. Thus an error when uploading seems a bit extreme to me.

Why it happens so frequently: perhaps authors don't care enough, and/or have no ready means to automatically check for duplicates. I know we had duplicate tests in a recent contest, and I'm not proud of that. However, at the point it was discovered, it was more convenient overall to just use the tests as they were than to remove duplicates. This of course hints that the processes may be improved, but I digress.

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

    I know we had duplicate tests in a recent contest, and I'm not proud of that.

    You brought shame on your whole family.

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

      Hah, yeah, kind of.

      Seriously though, duplicate tests are in almost all cases not a problem in itself, but rather an indication that the problem just might be not polished. Definitely useful for a coordinator as a hint to take a closer look.