Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

wuhudsm's blog

By wuhudsm, history, 10 hours ago, In English

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++)
  • Vote: I like it
  • +10
  • Vote: I do not like it

»
3 hours ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

[Deleted]

  • »
    »
    2 hours ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    [No one seeing]

»
3 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

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.