如果你单调队列过样例但 000 pts:
... if(!dq.empty()) { dq.clear(); } for(int j=m;j>=1;j--) { while(!dq.empty() && dq.front()>j+t) ... } ...