把
else if(d[x][y][z]!=0) return d[x][y][z];
else if(x>20 || y>20 || z>20)
{
d[20][20][20]=dfs(20,20,20);
return d[20][20][20];
}
变成
```cpp
else if(x>20 || y>20 || z>20)
{
d[20][20][20]=dfs(20,20,20);
return d[20][20][20];
}
else if(d[x][y][z]!=0) return d[x][y][z];
```
试试
by John_zyj @ 2018-07-27 21:49:19