We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47eda9b commit 91ca381Copy full SHA for 91ca381
1 file changed
live8/test88/문제2/이상민.js
@@ -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