Problem link — http://www.spoj.com/problems/GSS1/
My solution in java is giving TLE. I have used fast I/O and segment tree.
Can anyone please help and figure out the problem.
My solution — http://ideone.com/WERmA4
Thank You
Problem link — http://www.spoj.com/problems/GSS1/
My solution in java is giving TLE. I have used fast I/O and segment tree.
Can anyone please help and figure out the problem.
My solution — http://ideone.com/WERmA4
Thank You