Development82 [백준] 2338 Node.js const fs = require('fs'); const input = fs.readFileSync("/dev/stdin").toString().trim().split("\n").map(BigInt); console.log(`${input[0]+input[1]} \n${input[0]-input[1]} \n${input[0]*input[1]}`) 2022. 9. 20. [백준] 10797 Node.js const fs = require('fs'); let [n, num] = fs.readFileSync("/dev/stdin").toString().trim().split("\n"); n = Number(n) num = num.split(" ").map(Number) let result = 0; num.forEach((number, i) => { if(number === n) result += 1 }) console.log(result) 2022. 9. 19. [백준] 1271 Node.js const fs = require('fs'); const input = fs.readFileSync("/dev/stdin").toString().trim().split(" ").map(BigInt); console.log(`${input[0]/input[1]} \n${input[0]%input[1]}`) 2022. 9. 19. [백준] 2475 Node.js const fs = require('fs'); const input = fs.readFileSync("/dev/stdin").toString().trim().split(" ").map(Number); let serial = 0; for(let i = 0; i < input.length; i++) { serial +=(input[i] * input[i]); } console.log(serial%10) 2022. 9. 18. 이전 1 ··· 4 5 6 7 8 9 10 ··· 21 다음