Skip to content

Commit

Permalink
08.23: math(긴자리 계산)
Browse files Browse the repository at this point in the history
  • Loading branch information
luckylooky2 committed Aug 23, 2024
1 parent b2f073a commit 5375df0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions baekjoon/2338.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// 긴자리 계산 : 수학
const [a, b] = require("fs")
.readFileSync(0, "utf-8")
.toString()
.trim()
.split("\n")
.map((v) => BigInt(v));
const answer = [a + b, a - b, a * b];

console.log(answer.join("\n"));

0 comments on commit 5375df0

Please sign in to comment.