Implement a segment tree

Limite di tempo: 3 sec
/
Limite di memoria: 512 MB
Input/output: grader
Punteggio massimo: 59