加上 long long 和 memset(f,0x80,sizeof f) 再令 ans=f[0][0][0] 就可以过了。其实深入浅出没有标明这道题哦,所以数据简单化了
long long
memset(f,0x80,sizeof f)
ans=f[0][0][0]