https://www.acmicpc.net/problem/1271
1271번: 엄청난 부자2
첫째 줄에는 최백준 조교가 가진 돈 n과 돈을 받으러 온 생명체의 수 m이 주어진다. (1 ≤ m ≤ n ≤ 101000, m과 n은 10진수 정수)
www.acmicpc.net
const fs = require('fs');
const input = fs.readFileSync('/dev/stdin').toString().split(" ");
const n = BigInt(input[0]);
const m = BigInt(input[1]);
console.log((n/m).toString());
console.log((n%m).toString());
728x90
'Algorithm&CodingTest > Baekjoon' 카테고리의 다른 글
[Baekjoon][7568] 실버5 - 덩치 Python (0) | 2024.01.19 |
---|---|
[Baekjoon][1495] 실버1 - 기타리스트 (0) | 2023.04.22 |
[Baekjoon] [2178] DFS/BFS 실버1 - 미로 탐색 (0) | 2023.03.17 |
[Baekjoon] [1766] 위상정렬 골드2 - 문제집 (0) | 2023.03.15 |
[Baekjoon] [2667] DFS/BFS 실버 1 - 단지번호붙이기 (0) | 2023.03.14 |