
const fs = require("fs");const input = fs.readFileSync("/dev/stdin", "utf8").trim().split("\n");const grid = input.slice().map((line) => line.split(" ").map(Number));let blanks = [];grid.forEach((line, i) => line.forEach((v, j) => (v === 0 ? blanks.push([i, j]) : null))); // 빈칸들의 위치를 [r, c] 로 저장let find = false;const rows = Array.from({ length: 9 }, () => new Set());const cols = Array.from({ len..