版本比较
P14256 题解
正文
增加 0 行删除 1 行
52 行未改动53545556575758596044 行未改动52 行未改动 memset(g[i&1],0,sizeof g[i&1]); for(int j=0;j<N;++j){ // last position count for(int u=0;u<=2;++u){ for(int y=0;y<=2;++y){ if(!f[1^i&1][j][y][u]) continue; for(int x=0;x<=2;++x){ if(!h[x][s[i]]) continue; if(x==y){ add(f[i&1][j][x][u],f[1^i&1][j][y][u]);44 行未改动