加入的代码加入在
```cpp
while(scanf("%lld%lld%lld",&a,&b,&c)){
memset(f,0,sizeof(f));
if(a==-1&&b==-1&&c==-1)
break;
printf("w(%lld, %lld, %lld) = ",a,b,c);
```
之后
by only_matthew @ 2021-07-06 13:04:16
@[only_matthew](/user/421080) 当 $a,b,c$ 中有数很大时在你判断中调用 `f[a][b][c]` 时就越界访问无效内存了
by VinstaG173 @ 2021-07-06 13:12:27
@[VinstaG173](/user/59388) 如何解决呢?
by only_matthew @ 2021-07-06 22:44:43
@[only_matthew](/user/421080) 我的意思是除了这个解决办法还有什么
by only_matthew @ 2021-07-06 22:49:24