1.
etc. f[7][-3][5][-5]
Sol:
maxn=n+k (etc. k=10)
f[maxn][maxn]
2.
etc. f[-1][10][10]
Sol:
int zz[200],f[maxn][maxn][maxn];
1.
etc. f[7][-3][5][-5]
Sol:
maxn=n+k (etc. k=10)
f[maxn][maxn]
2.
etc. f[-1][10][10]
Sol:
int zz[200],f[maxn][maxn][maxn];