728x90
let input = require('fs').readFileSync('/dev/stdin').toString().split("\n");
const loop = +input[0];
let numArray = "";
for (i = 1; i <= loop; i++) {
let numbers = input[i].split(" ").map(Number);
numArray +=numbers[0] + numbers[1] + "\n";
}
console.log(numArray);
๐ ๋น ๋ฅธ ์๊ฐ ์ถ๋ ฅ์ด๋ผ์ ์ถ๋ ฅ์ด ์ฌ๋ฌ๋ฒ ๋์ค๋ฉด ์๊ฐ ์ด๊ณผ๊ฐ ๋์จ๋ค.
ํ๋ฒ์ ๋ฌธ์์ด๋ก ๋ฐ์ ํ, "\n" ์ผ๋ก ํ ์ค์ฉ ๋๋ ์ ํ๋ฒ์ ์ถ๋ ฅํ๋ ๊ฒ์ด ํฌ์ธํธ
728x90
๋ฐ์ํ
'ํ์ ๊ณต๋ถ > ๐ซง ์๊ณ ๋ฆฌ์ฆ ๊ณต๋ถ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค/Node.js] 2438๋ฒ ํ์ด || JavaScript (0) | 2023.02.27 |
---|---|
[๋ฐฑ์ค/Node.js] 11021, 11022๋ฒ ํ์ด || JavaScript (0) | 2023.02.27 |
[๋ฐฑ์ค/Node.js] 25314๋ฒ ํ์ด || JavaScript (0) | 2023.02.25 |
[๋ฐฑ์ค/Node.js] 25304๋ฒ ํ์ด || JavaScript (0) | 2023.02.25 |
[๋ฐฑ์ค/Node.js] 8393๋ฒ ํ์ด || JavaScript (0) | 2023.02.24 |