Help needed in Subtree Queries CSES

Правка en2, от rengokudied, 2023-07-28 15:57:16

I have been trying to flatten the tree using euler tour and then making a segment tree on the value array for point update and range query . I cant seem to understand the logical error i am doing . Please someone guide.

Code

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский rengokudied 2023-07-28 15:57:16 23
en1 Английский rengokudied 2023-07-28 15:41:59 3567 Initial revision (published)