Segment Tree problem
I was solving this segment tree problem . I cannot understand what am I missing here? My solution in Ideone
AMA: TheOneYouWant
Atcoder ABC #351 Short Solution Discussion