Skip to content

Commit

Permalink
엄청난 부자2
Browse files Browse the repository at this point in the history
  • Loading branch information
luckylooky2 committed Aug 4, 2024
1 parent 3fbfce1 commit 1736287
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions baekjoon/1271.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// 엄청난 부자2
const [n, m] = require("fs")
.readFileSync("/dev/stdin")
.toString()
.trim()
.split(" ")
.map((v) => BigInt(v));

function solve(n, m) {
const quotinent = n / m;
const remainder = n % m;
return [String(quotinent), String(remainder)];
}

console.log(solve(n, m).join("\n"));

0 comments on commit 1736287

Please sign in to comment.