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

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

We will hold Daiwa Securities Co. Ltd. Programming Contest 2022 Autumn (AtCoder Beginner Contest 277).

The point values will be 100-200-300-400-500-500-600-600. We are looking forward to your participation!

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

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

Ex is an easier version of this problem

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

graph round?

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

I feel that virtual participation at codeforces really helps a lot. I was lucky to get F solved since I have met this problem https://codeforces.net/contest/587/problem/D, which is related to 2-sat, and by introducing some auxiliary nodes, the number of edges could be reduced from O(m^2) to O(m). I don't think I could solve F without this inspiration.

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

My submission for problem D that got AC during contest is actually wrong. I submitted just now to see if any "after contest" test cases have been added. None have been added and it still gets AC.

I suggest there should be a hacking mechanism through which we can add such cases.

Here is the test case which my submission fails. Correct answer should be 22, mine prints 26.

9 6
5 9 3 3 6 7 4 2 2