Algorithm
- 16์ง์ -
๋ฌธ์
16์ง์ ์๋ฅผ ์ ๋ ฅ๋ฐ์์ 10์ง์๋ก ์ถ๋ ฅํ๋ ํ๋ก๊ทธ๋จ์ ์์ฑํ์์ค.
์ ์ถ๋ ฅ ์์
๋ฌธ์ ํ๊ธฐ
const readline = require("readline");
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
});
let input;
rl.on("line", function (line) {
input = line.toString();
}).on("close", function () {
console.log(parseInt(input, 16));
process.exit();
});
๋ฐ์ํ
'๊ฐ์ธ๊ณต๋ถ > Algorithm' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค][Node.js] 1676๋ฒ : ํฉํ ๋ฆฌ์ผ 0์ ๊ฐ์ (0) | 2021.07.11 |
---|---|
[๋ฐฑ์ค][Node.js] 1620๋ฒ : ํฌ์ผ๋ชฌ ๋ง์คํฐ ์ด๋ค์ (0) | 2021.07.10 |
[๋ฐฑ์ค][Node.js] 1547๋ฒ : ๊ณต (0) | 2021.07.08 |
[๋ฐฑ์ค][Node.js] 1546๋ฒ : ํ๊ท (0) | 2021.07.07 |
[๋ฐฑ์ค][Node.js] 1543๋ฒ : ๋ฌธ์ ๊ฒ์ (0) | 2021.07.06 |
๋๊ธ