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 파일에 입력값을 넣어주었고
결과값은 일치하는거를 알수있다