Skip to content

Commit 91ca381

Browse files
committed
88차 2번 문제풀이
1 parent 47eda9b commit 91ca381

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

live8/test88/문제2/이상민.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const input = require("fs")
2+
.readFileSync(process.platform === "linux" ? "/dev/stdin" : "./input.txt")
3+
.toString()
4+
.trim()
5+
.split("\n");
6+
7+
input.shift();
8+
9+
const tmp = [];
10+
11+
for (const i of input) {
12+
const arr = i.split(" ").map(Number);
13+
for (const j of arr) {
14+
tmp.push(j);
15+
}
16+
}
17+
18+
console.log(tmp.sort((a, b) => a - b).join(" "));

0 commit comments

Comments
 (0)