Rt。下面这份代码巨慢无比,交到oj上是MLE,求助原因,vector也没这么慢啊,有啥好的解决方法吗qwq
#include <iostream>
#include <queue>
inline int read() {
int x=0,f=1;char ch=getchar();
while(ch<'0'||ch>'9') {if(ch=='-')f=-1;ch=getchar();}
while(ch>='0'&&ch<='9') {x=(x<<1)+(x<<3)+(ch^48);ch=getchar();}
return x*f;
}
using std::min;
using std::max;
const int N=1e6+5;
std::queue<int>deg[N],r[N];
signed main(void){
return 0;
}