백준 28841 [JS/백준] - 2884번 2884번: 알람 시계 상근이는 매일 아침 알람을 듣고 일어난다. 알람을 듣고 바로 일어나면 다행이겠지만, 항상 조금만 더 자려는 마음 때문에 매일 학교를 지각하고 있다. 상근이는 모든 방법을 동원해보았지만, www.acmicpc.net 내가 쓴 코드 const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); rl.on("line", function (x) { x = x.split(" "); console.log(solution(parseInt(x[0]), parseInt(x[1]))); rl.close(); }); function solu.. 2022. 3. 23. 이전 1 다음 728x90 반응형