标签:ret 序列 自动 for 程序 dfs 子序列 return n+1
直接看程序吧
LL Dfs(LL x,LL y)
{
if(f[x][y]) return f[x][y];
for(LL i=1;i<=a;++i)
if(nxt1[x][i]&&nxt2[y][i]){
if(nxt1[x][i]+nxt2[y][i]>n+1) continue;
if(nxt1[x][i]+nxt2[y][i]<n+1) f[x][y]++;
f[x][y]=(f[x][y]+Dfs(nxt1[x][i],nxt2[y][i]))%mod;
}
return ++f[x][y];
}
标签:ret 序列 自动 for 程序 dfs 子序列 return n+1
原文地址:https://www.cnblogs.com/cutemush/p/12629015.html