[백준10998_자바스크립트(javascript)] - A×B

경이·2024년 8월 9일

𝑩𝑶𝑱 (𝒋𝒔)

목록 보기
121/325
post-thumbnail

🔴 문제

A×B


🟡 Sol

const fs = require('fs');
const path = process.platform === 'linux' ? '/dev/stdin' : 'Wiki\\input.txt';
const [a, b] = fs.readFileSync(path).toString().trim().split(' ').map(Number);

console.log(a * b);

🟢 풀이

⏰ 소요한 시간 : -

입력 받아온 값을 숫자로 바꾼 뒤 곱해서 출력한다.


🔵 Ref

profile
록타르오가르

0개의 댓글