
This is my code submit in this problem, and I get accepted. but the code I submit using segment tree and I get TLE or RE. What wrong with it?
problem with UVALive — 8522 LOVER II

This is my code submit in this problem, and I get accepted. but the code I submit using segment tree and I get TLE or RE. What wrong with it?