반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- type challenge
- BFS
- 문자열
- 타입 챌린지
- 알고리즘
- TCP
- 타입스크립트
- 레벨 1
- 자바스크립트
- ip
- typescript
- 그래프
- dp
- HTTP 완벽 가이드
- Nestjs
- 백준
- 쉬운 문제
- 프로그래머스 레벨 2
- 크롤링
- 가천대
- Node.js
- Algorithm
- HTTP
- Crawling
- socket
- 소켓
- javascript
- dfs
- 수학
- 프로그래머스
Archives
- Today
- Total
kakasoo
[node.js] !밀비 급일 ( 백준 11365번 ) 본문
반응형
// 백준 11365번 !밀비 급일을 풀었습니다.
const readline = require("readline");
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
});
const input = [];
rl.on("line", (line) => {
if (line !== "END") {
input.push(line);
} else {
main();
rl.close();
}
}).on("close", () => {
process.exit();
});
const main = () => {
for (let i = 0; i < input.length; i++) {
console.log(input[i].split("").reverse().join(""));
}
};
매우 간단한 문제.
반응형
'프로그래밍 > 알고리즘 풀이' 카테고리의 다른 글
[node.js] 빙산 ( 백준 2573번 ) (0) | 2021.04.12 |
---|---|
[node.js] 행복한지 슬픈지 ( 백준 10769번 ) (0) | 2021.04.11 |
[node.js] 숫자 ( 백준 10093번 ) (0) | 2021.04.11 |
[node.js] 버블 소트 ( 백준 1377번 ) (0) | 2021.04.11 |
[node.js] 미로 탐색 ( 백준 2178번 ) (0) | 2021.04.10 |