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

Автор wet_water, история, 5 лет назад, По-английски

Hello all,

Are there any good (yet basic) problems that use a segment tree of dsus? I've been reading a lot of problem tutorials that use this as the solution, but I don't really understand how it works. I was hoping to start out with simpler problems and gradually work to the harder problems.

However, when I tried searching the topic up on google, the closest thing I could find was an article that briefly mentioned combining segment trees and dsus but failed to explain it for a beginner.

The example problem is here: https://codeforces.me/contest/763/problem/E

Any recommendations would be greatly appreciated!

  • Проголосовать: нравится
  • +24
  • Проголосовать: не нравится

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

can you share the problem whose editorial you were trying to read. because i know only one problem 76-A that uses segment tree of dsu

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

Auto comment: topic has been updated by wet_water (previous revision, new revision, compare).

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

1140F? Sorry for my bad English, I don't know what data structure you are talking about.

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

Another one: 811E - Владик и занимательные флаги.

It has similar difficulty though