here is the link https://www.codechef.com/SEPT17/problems/SEACO
i have seen its solution but not clear with its implementation here is the solution link-https://www.codechef.com/viewsolution/15329920
Problem with application of segment trees in SEACO?
here is the link https://www.codechef.com/SEPT17/problems/SEACO
i have seen its solution but not clear with its implementation here is the solution link-https://www.codechef.com/viewsolution/15329920