
답안
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
let input = [];
rl.on('line', function (line) {
input = line.split(' ');
}).on('close', function () {
const a = Number(input[0]);
const b = Number(input[1]);
console.log(`a = ${a}`);
console.log(`b = ${b}`);
});'알고리즘 > 코딩테스트' 카테고리의 다른 글
| [JS] 프로그래머스 Lv.0 문자열 반복해서 출력하기 (0) | 2023.09.06 |
|---|---|
| [JS]프로그래머스 Lv.0 문자열 출력하기 (0) | 2023.09.06 |
| 코딩테스트 연습 - 프로그래머스 (0) | 2023.04.17 |