Hello everyone. For the May Long Contest's problem MSTICK, I came out with a python solution which is as fast as the AC ones I checked when the contest ended. However, my solution got TLE. Can someone tell me what's wrong with it ? Here is the code. Thank you, I'm working on it for weeks now ! I even learned to implement a segment tree but it is still slow.
↧