분류 전체보기87 [백준] 2440 Node.js const fs = require('fs'); const n = fs.readFileSync("/dev/stdin").toString().trim(); for(let i = Number(n); i>0; i--) { console.log('*'.repeat(i)) } 2022. 9. 16. [백준] 4101 Node.js const fs = require('fs'); const input = fs.readFileSync("/dev/stdin").toString().trim().split("\n"); for(let i = 0; i test[1] ? 'Yes' : 'No') } } 2022. 9. 15. [백준] 15964 Node.js const fs = require('fs'); const input = fs.readFileSync("/dev/stdin").toString().trim().split(" ").map(Number); let result = 0; const cal = (a, b) => { return (a+b) * (a-b) } result = cal(input[0], input[1]) console.log(result) 2022. 9. 15. [백준] 2744 Node.js const fs = require('fs'); const input = fs.readFileSync("/dev/stdin").toString().trim(); let str = ''; for(let i =0; i = 97) { str += input[i].toUpperCase(); } else { str += input[i].toLowerCase(); } } console.log(str) 2022. 9. 14. 이전 1 ··· 6 7 8 9 10 11 12 ··· 22 다음