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

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

Problem Link https://www.codechef.com/problems/ADDMUL

I wanted to understand how to handle addition and multiplication queries simultaneously. Though I read the editorial, I could not understand how to propagate lazy updates to the child nodes.

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

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

Do you mind try reading my solution?

https://www.codechef.com/viewsolution/41782975

Hopefully the documentation that I put helps. Do let me know if it doesn't.