SPOJ GSS1

Revision en3, by sudddddd, 2017-06-17 11:47:22

Hello, this is my first problem on segment tree. I have used segment tree to solve this problem but I am getting Wrong Answer on a test case. Can you point out what is wrong. Thank you

Problem Statement

My Code

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English sudddddd 2017-06-17 11:47:22 2184
en2 English sudddddd 2017-06-17 11:45:13 14
en1 English sudddddd 2017-06-17 11:44:07 2473 Initial revision (published)