We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cf1bc4 commit 1617d35Copy full SHA for 1617d35
서정우/9주차/260226.js
@@ -0,0 +1,20 @@
1
+const fs = require("fs");
2
+const filePath = process.platform === "linux" ? "/dev/stdin" : "./서정우/input.txt";
3
+const input = fs
4
+ .readFileSync(filePath)
5
+ .toString()
6
+ .trim()
7
+ .split("\n")
8
+ .map((el) => el.trim());
9
+
10
+const num1 = Number(input[0]);
11
+const num2 = Number(input[1]);
12
13
+const num = Math.floor(num1 / 100);
14
+for (let i = 0; i < 100; i++) {
15
+ const num3 = num * 100 + i;
16
+ if (num3 % num2 === 0) {
17
+ console.log((num3 % 100).toString().padStart(2, "0"));
18
+ return;
19
+ }
20
+}
서정우/input.txt
@@ -1 +1,2 @@
-161 181 762 375
+32442
+99
0 commit comments