const rl = require('readline').createInterface({ input: process.stdin, output: process.stdout }); const inputs = []; const dr = [{x: -1, y: 0}, { x: 0, y: 1 }, { x: 1, y: 0 }, {x: 0, y: -1}]; rl.on('line', (line) => { inputs.push(line); }).on('close', () => { // 1. 初始化迷宫 ...