분류 전체보기87 [백준] 1264 Node.js const fs = require('fs'); const input = fs.readFileSync("/dev/stdin").toString().trim().split("\n"); function getVowelCount(str) { const matches = str.match(/[aeiou]/gi); return matches ? matches.length : 0; } for(let i = 0; i < input.length-1; i++) { console.log(getVowelCount(input[i])) } 2022. 9. 20. [백준] 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. 이전 1 ··· 4 5 6 7 8 9 10 ··· 22 다음