We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6fb0af commit 9e5bfdeCopy full SHA for 9e5bfde
part1/12.문자열반복.txt
@@ -0,0 +1,18 @@
1
+const fs = require("fs")
2
+const input = fs.readFileSync("index.txt").toString().split("\n")
3
+
4
+console.log(input)
5
+let count = Number(input[0])
6
7
+for(let i=1;i<=count;i++){
8
+ let [num,arr]=input[i].split(" ")
9
10
+let answer=""
11
12
+ for(let item of arr){
13
+ for(let i=0;i<num;i++){
14
+ answer+=item
15
+ }
16
17
+ console.log(answer)
18
+}
part1/13.상수.txt
@@ -0,0 +1,10 @@
+let [a, b] = input[0].split(" ")
+let a_miss=a.split("").reverse().join("")
+let b_miss=b.split("").reverse().join("")
+console.log(Math.max(a_miss,b_miss))
0 commit comments