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

경이·2024년 1월 4일

𝑩𝑶𝑱 (𝒋𝒔)

목록 보기
4/325

🔴 문제

A - B


🟡 Sol

let fs = require('fs');
let input = fs
  .readFileSync('/dev/stdin')
  .toString()
  .split(' ')
  .map((it) => parseInt(it));

console.log(input[0] - input[1]);

🟢 풀이

입력받은 값을 정수로 변경한 뒤 빼주면된다


🔵 Ref

profile
록타르오가르

0개의 댓글