728x90
const fs = require('fs');
const input = fs.readFileSync("/dev/stdin").toString().trim();
let str = '';
for(let i =0; i <input.length; i++) {
if(input.charCodeAt(i) >= 97) {
str += input[i].toUpperCase();
} else {
str += input[i].toLowerCase();
}
}
console.log(str)
728x90
'Development > 코딩테스트' 카테고리의 다른 글
[백준] 4101 Node.js (0) | 2022.09.15 |
---|---|
[백준] 15964 Node.js (0) | 2022.09.15 |
[백준] 2743 Node.js (0) | 2022.09.13 |
[백준] 2738 node.js (0) | 2022.09.05 |
[백준] 5597번 Node.js (0) | 2022.09.04 |
댓글