From 1736287cfff24dcb054473a6df25104ccac37de5 Mon Sep 17 00:00:00 2001 From: luckylooky2 Date: Sun, 4 Aug 2024 23:58:46 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=84=EC=B2=AD=EB=82=9C=20=EB=B6=80?= =?UTF-8?q?=EC=9E=902?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- baekjoon/1271.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 baekjoon/1271.js diff --git a/baekjoon/1271.js b/baekjoon/1271.js new file mode 100644 index 0000000..8ed2e12 --- /dev/null +++ b/baekjoon/1271.js @@ -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"));