We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15f45cd commit 1fec7d7Copy full SHA for 1fec7d7
part1/5.주사위세개.txt
@@ -0,0 +1,22 @@
1
+let fs = require("fs")
2
+let input = fs.readFileSync("input.txt").toString().split("\n")
3
+
4
+const [a, b, c] = input[0].split(" ").map(Number)
5
6
+if (a == b && b == c) {
7
+ console.log(10000 + a * 1000)
8
+}
9
+else if (a == b || b == c || a == c) {
10
+ if (a - b == 0) {
11
+ console.log(1000 + a * 100)
12
+ } else if (a - c == 0) {
13
14
+ } else if (b - c == 0) {
15
+ console.log(1000 + b * 100)
16
+ }
17
18
19
+else {
20
+ console.log(Math.max(a, b, c) * 100)
21
22
섹션8/9.동전교환.html
0 commit comments