[백준 1008/node.js] A/B

김겜김·2023년 10월 8일
0
post-thumbnail

1
2
3
4
5
6
7
8
9
10
11
12
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);
 
cs

example.txt 파일에 입력값을 넣어주었고

결과값은 일치하는거를 알수있다

profile
개발에 관심이있습니다

0개의 댓글