//interactive int u[6][6]{}; int sr[6][6],sc[6][6]; rep(i,6){ rep(c,6){ sr[i][c]=24; sc[i][c]=24; } } rep(t,35){ int@--d[6]; int e[6]{}; rep(i,6){ e[d[i]]+=1; } int dr[6]{},dc[6]{}; rep(y,6){ rep(c,6){ dr[y]+=sr[y][c]==0?0:e[c]==0?-sr[y][c]:e[c]*10-9; } } rep(x,6){ rep(c,6){ dc[x]+=sc[x][c]==0?0:e[c]==0?-sc[x][c]:e[c]*10-9; } } int bd=-9999,by=0,bx=0; rep(y,6){ rep(x,6){ if(!u[y][x]){ if(bd