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

Автор Gheal, 2 года назад, По-английски
Vote your favourite problem

103633A — The Hatchet

Author: tibinyte

Rate Problem
Solution
Code (C++)

103633B — Floor Or Xor

Author: tibinyte

Rate Problem
Solution
Code (C++)

103633C — Yet Antother Constructive Problem

Author: Gheal

Rate Problem
Hint 1
Hint 2
Solution
Code (C++)
Post Scriptum

103634A — Bamboo Coloring

Rate Problem
Solution
Post Scriptum

Code (C++) (cadmiumky)

Note: this code can be further optimized by removing the $$$lca$$$ function

103634B — Xor Or Floor

Author: tibinyte

Rate Problem
Solution
Code (C++)

103634C — Jump

Author: Gheal

Rate Problem
Solution
Code (C++)
Post Scriptum
Разбор задач Infoleague Spring 2022 Round Div. 2
Разбор задач Infoleague Spring 2022 Round Div. 1
  • Проголосовать: нравится
  • +30
  • Проголосовать: не нравится

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

Thanks for the amazing contest strangers, it was very fun!!:)

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

About Xor Or Floor.

Looking at Editorial's code, it seems to me that it would TLE in cases where M is large (e.g. N = 2, M = 5 * 10^5), am I mistaken?

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

    Nvm

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

    It would, but that can be easily fixed. We only had test data with big N to fail the $$$N^2 \cdot M$$$ solution for the last subtask so I didn't even notice that it would fail for big M. I reuploaded the code which should work for big M as well. Thanks for finding this issue!

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

Vote your favourite problem

Honestly, I don't see the hype surrounding the hatchet, I would honestly bury it.

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

Gheal please could you tell me why my code is not accepted in? code: https://codeforces.com/gym/103633/submission/151426182