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

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

any suggest to solve this problem using rmq(segment tree) http://codeforces.com/contest/71/problem/D

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

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

I remembered that I solved this problem in a very straightforward manner, with quite long codes. Well, it is a little difficult for me to relate this problem with RMQ....

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

    it may need 2d segment tree

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

      Now I understand why I can not establish the relationship between segment tree and that problem....

      If you figure out how to solve it based on 2D segment tree, it is really nice for you to share some materials or discussion about it. I think 2D segment tree is really an advanced technique, at least for me.