一个简单问题

P3808 AC 自动机(简单版)

```cpp #include<bits/stdc++.h> using namespace std; string s[1000006],t[1000006]; signed main() { printf("%d",sizeof(s)+sizeof(t)); return 0; } ``` 可以用sizeof来查看数组所占空间的大小(B),如果是上面那样只是定义只会占 $64000384B≈61MB$,空间不会爆掉
by lunjiahao @ 2024-02-19 22:05:04


@[lunjiahao](/user/779970) 好的,现在才看到,谢谢
by Hot_tear @ 2024-02-22 17:12:01


|