
답안
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 str = input[0];
const n = Number(input[1]);
const result = str.repeat(n);
console.log(result);
});'알고리즘 > 코딩테스트' 카테고리의 다른 글
| [JS]프로그래머스 Lv.0 문자열 출력하기 (0) | 2023.09.06 |
|---|---|
| [JS]프로그래머스 Lv.0 a와 b 출력하기 (0) | 2023.09.06 |
| 코딩테스트 연습 - 프로그래머스 (0) | 2023.04.17 |