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

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

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

My solution seemed to be a little bit too slow, so I’ve tried to squeeze it. Bitsets were used only to store the matrix, so I’ve tried to check if asking about an edge will be faster on normal array. Finally, the only differences between the first and the last submission are some optimizations in the top of the code. I didn’t care about incorrect attempts, as the wouldn’t change my position.

My debug does nothing without an exact compilation flag. You might remember it from a puzzle for viewers from the last ICPC finals.

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

    Thanks, that explains everything! And I guess you were submitting to the actual contest instead of using the "run" function to compare the time spent on pretests between different solutions?

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

      Yep, exactly. I knew that my penalty wasn't great so I just wanted to make sure that E passes.

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

orz gennady