728x90
let input = require('fs').readFileSync('/dev/stdin').toString().split(" ");
const quantityOf4 = +input[0] / 4;
let board = "";
for (let i = 0; i < quantityOf4; i++) {
board = `${board} long`;
}
console.log(board.trim(), "int");
๐ ๊ณต๋ฐฑ์ด ๋์ค๋ ๋ถ๋ถ์ trim() ํจ์๋ก ์๋ผ๋ธ ํ ๋์ int ๋ฅผ ๊ฐ์ด ์ถ๋ ฅํ๋ค.
728x90
๋ฐ์ํ
'ํ์ ๊ณต๋ถ > ๐ซง ์๊ณ ๋ฆฌ์ฆ ๊ณต๋ถ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค/Node.js] 11021, 11022๋ฒ ํ์ด || JavaScript (0) | 2023.02.27 |
---|---|
[๋ฐฑ์ค/Node.js] 15552๋ฒ ํ์ด || JavaScript (0) | 2023.02.26 |
[๋ฐฑ์ค/Node.js] 25304๋ฒ ํ์ด || JavaScript (0) | 2023.02.25 |
[๋ฐฑ์ค/Node.js] 8393๋ฒ ํ์ด || JavaScript (0) | 2023.02.24 |
[๋ฐฑ์ค/Node.js] 10950๋ฒ ํ์ด || JavaScript (0) | 2023.02.23 |