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

Автор Petr, история, 7 лет назад, По-английски
  • Проголосовать: нравится
  • +71
  • Проголосовать: не нравится

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

"With the only successful solution to problem E coming from a contestant with no other solved problems..."

"a contestant"

radoslav11 so close.

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

    :")

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

    CF, please add sad reactions :(

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

    Sorry..but can you please explain what 'a contestant' meant?

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

      A contestant means someone who participates in a contest

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

          Yes, he is not a real contestant. How dare he not solve all problems but just the hardest one!

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

      Actually the joke isn't centered around what "a contestant" means. The joke is people who read Petr's blog hope that one day the will get mentioned. So ___ does something unique and worth mentioning... but he doesn't get mentioned by name! So he got "so close" but not close enough. ¯\_(ツ)_/¯

      Sorry I made the joke a bit obtuse but it was a tradeoff between making it more understandable and making the delivery shorter and sharper.

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

For some reason my comment disappeared so I will add it here: it's easier(in my opinion) way to find vertices ABC such that AB and AC are edges and BC is not. Let A — the vertex of highest degree, iterate over B and C — its neighbours. Then if BC is not an edge — stop. It's O(M) checks in a set. If you didn't find such triangle, then all neighbours of A has same degree as A and then graph is clique

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

    Iterating over all three will probably also work. I can understand why it's but I don't know any case where it's greater than O(M1.5)