ํ๋ก๊ทธ๋๋จธ์ค - ๋ฌธ์์ด ๋ถ์ฌ์ ์ถ๋ ฅํ๊ธฐ - js
2023. 7. 23. 21:22ใStudy_Develop/์๊ณ ๋ฆฌ์ฆ | ์ฝ๋ฉํ ์คํธ
๋ฐ์ํ
ํ๋ก๊ทธ๋๋จธ์ค - ๋ฌธ์์ด ๋ถ์ฌ์ ์ถ๋ ฅํ๊ธฐ - js
๋ฌธ์ ์ค๋ช
๋ ๊ฐ์ ๋ฌธ์์ด str1, str2๊ฐ ๊ณต๋ฐฑ์ผ๋ก ๊ตฌ๋ถ๋์ด ์
๋ ฅ์ผ๋ก ์ฃผ์ด์ง๋๋ค.
์
์ถ๋ ฅ ์์ ๊ฐ์ด str1๊ณผ str2์ ์ด์ด์ ์ถ๋ ฅํ๋ ์ฝ๋๋ฅผ ์์ฑํด ๋ณด์ธ์.
์ ํ ์ฌํญ
1 ≤ str1, str2์ ๊ธธ์ด ≤ 10
์ ๋ ฅ
apple pen
์ถ๋ ฅ
applepen
solution.js
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 () {
str1 = input[0];
str2 = input[1];
console.log(str1+str2)
});
ํด์ค ์๋ต