런타임에러
-
<백준> 2884번: 알람 시계유물/└ 백준 2021. 12. 25. 16:47
🤖 문제 https://www.acmicpc.net/problem/2884 2884번: 알람 시계 상근이는 매일 아침 알람을 듣고 일어난다. 알람을 듣고 바로 일어나면 다행이겠지만, 항상 조금만 더 자려는 마음 때문에 매일 학교를 지각하고 있다. 상근이는 모든 방법을 동원해보았지만, www.acmicpc.net 풀이 const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); let input = []; rl.on("line", (line) => { input = line.split(" ").map((el) => Number(el)); })...
-
<백준> 14681번: 사분면 고르기유물/└ 백준 2021. 12. 25. 16:15
🤖 문제 https://www.acmicpc.net/problem/14681 14681번: 사분면 고르기 점 (x, y)의 사분면 번호(1, 2, 3, 4 중 하나)를 출력한다. www.acmicpc.net 풀이 const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); let input = []; let quadrantVal; rl.on("line", function (line) { input.push(parseInt(line)); }).on("close", function () { const x = input[0]; const y = i..