본문 바로가기
Development/코딩테스트

[백준] 9086 Node.js

by Yeony99 2022. 9. 16.
728x90
const fs = require('fs');
const input = fs.readFileSync("/dev/stdin").toString().trim().split("\n");

for(let i = 1; i <= input[0]; i++) {
    console.log(input[i][0]+input[i][input[i].length-1])
}
728x90

'Development > 코딩테스트' 카테고리의 다른 글

[백준] 2475 Node.js  (0) 2022.09.18
[백준] 2754 Node.js  (0) 2022.09.17
[백준] 2440 Node.js  (0) 2022.09.16
[백준] 4101 Node.js  (0) 2022.09.15
[백준] 15964 Node.js  (0) 2022.09.15

댓글