STL stack内存超限
查看原帖
STL stack内存超限
140242
李34楼主2022/8/3 11:50

为什么这个在洛谷IDE上面内存超限了?

#include<bits/stdc++.h>
using namespace std;
const int N=500005;
stack<int> st[N];
signed main(){
    return 0;
}

为什么改成 vector 就不会?

求助大佬

2022/8/3 11:50
加载中...