Development/코딩테스트47 [백준] 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. [백준] 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. 이전 1 ··· 6 7 8 9 10 11 12 다음