摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4122代码:#include#include#include#include#include#includeusing namespace std;const int maxn = 100500;struct Node{ int id,val;};int order[2555];long long R[2555];int S,T,N,M;struct Myqueue{ Node Q[maxn]; int head,tail; void init() { h... 阅读全文