s1mp's blog

By s1mp, history, 4 years ago, In English

Hello, Codeforces!

How to solve this problem not using greedy algorithm in editorial? To be honest, I did not understand the solution in the official editorial. Maybe you can provide graph or DSU solution?

Thanks!

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it