분류 전체보기87 [백준] 2743 Node.js const fs = require('fs'); const input = fs.readFileSync("/dev/stdin").toString().trim(); console.log(input.length) 2022. 9. 13. [백준] 2738 node.js const fs = require('fs'); const arr = fs.readFileSync("/dev/stdin").toString().trim().split("\n"); let [n, m] = arr[0].split(' '); let nArr = []; let mArr = []; for(let i = 1; i 2022. 9. 5. [백준] 5597번 Node.js const fs = require('fs'); const input = require('fs').readFileSync('/dev/stdin').toString().trim().split('\n'); let start = 1; let arr = input.map((num) => Number(num)) arr = arr.sort((a, b) => a-b) while(start 2022. 9. 4. [백준] 10807 Node.js const fs = require('fs'); const input = fs.readFileSync("/dev/stdin").toString().trim().split("\n"); let count = 0; for(let i = 0; i < Number(input[0]); i++) { if(Number(input[2]) === Number(input[1].split(' ')[i])) count++; } console.log(count); 2022. 9. 3. 이전 1 ··· 7 8 9 10 11 12 13 ··· 22 다음