Skip to content

Commit be58205

Browse files
committed
01.18: math(Multiply)
1 parent 387e9dc commit be58205

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

baekjoon/22193.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Multiply : 수학
2+
const input = require("fs")
3+
.readFileSync(0, "utf-8")
4+
.trim()
5+
.split("\n")
6+
.map((v) => v.split(" ").map((v) => BigInt(v)));
7+
const [[n, m], [num1], [num2]] = input;
8+
9+
console.log((num1 * num2).toString());
10+
11+
// BigInt를 사용하는 것도 맞았는데, Destucturing을 이상하게 사용해서 틀렸다.

0 commit comments

Comments
 (0)