Segment Tree way to do this

Revision en1, by Virtual_Contestant, 2020-09-13 21:59:28

This is a simple question where we can easily solve without the segment trees by just opening mods. Can anyone tell the segment tree way to do this. I am pretty excited to know the solution using segment trees.

https://atcoder.jp/contests/abc178/tasks/abc178_e

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Virtual_Contestant 2020-09-13 21:59:28 293 Initial revision (published)