Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

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

Автор wuhudsm, история, 11 часов назад, По-английски

Thanks for your participation, hope you enjoy the problems.(Sorry for the inconvenience caused with the problem E and F1, actually the intended solutions runs very fast like for $$$E$$$ $$$2s$$$ and for $$$F1$$$ $$$2.5s$$$).

A: Short Query

Idea:Yugandhar_Master

solution
code(C++)

B: Minimum MEX

Idea:Yugandhar_Master

solution
code(C++)

C: Range Contradiction

Idea:Yugandhar_Master

solution
code(C++)

D: Eleven

Idea:Yugandhar_Master

solution
code(C++)

E: Not a Segment Tree

Idea:Yugandhar_Master

solution
code(C++)

F2: Award from Wuhudsm(Hard Version)

Idea:Yugandhar_Master

solution
code(C++)
  • Проголосовать: нравится
  • +9
  • Проголосовать: не нравится

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

[Deleted]

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

    [No one seeing]

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

For D, we can just handle the process until every 0 is flipped. The other part could be handled by flip each character in S then the process is same. For F1, I just did some optimization on my O(N^3) dp and it runs so fast. Just slightly less than 3s.