[백준 1000/node.js] A+B

김겜김·2023년 10월 4일
0

문제


example.txt. 파일생성후
4 3 입력
const fs = require('fs');

//백준 제출용
 const input = fs.readFileSync("/dev/stdin").toString().split(' ');

//문제풀이용
//const input = fs.readFileSync('example.txt').toString().split(' ');

var a = parseInt(input[0]);
var b = parseInt(input[1]);
console.log(a + b);

profile
개발에 관심이있습니다

0개의 댓글