const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); rl.on("line", function (line: string) { let tokens = line.split(";"); let ret = [0, 0]; let f = /^[WSAD]\d{1,2}$/; tokens.forEach((v) => { ...