一些方法

1、时间戳避免清空。

2、桶。负数下标数组:

  

int b[3000010],*T=b+1500010,now;
View Code
原文地址:https://www.cnblogs.com/seamtn/p/11694073.html