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

Автор dp_man, история, 10 месяцев назад, По-английски

Can anyone help me debug this submission https://codeforces.com/contest/1795/submission/217168990 Here I used segment tree for range update ,I mean adding 1 to a certain range. I know that this can be done using only a loop and and an array as I have to add 1 always but I wanna do this using segment tree. Thanks in advance.

Полный текст и комментарии »

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

Автор dp_man, история, 4 года назад, По-английски

Today I was trying to solve this problem http://lightoj.com/volume_showproblem.php?problem=1033 but couldn't find out any way to solve it. Can any body please describe how to solve this problem?

Полный текст и комментарии »

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