-
[java]백준 엄청난 부자2 1271번알고리즘 문제풀이/백준(자바) 2023. 4. 29. 17:37
코드
import java.math.BigInteger; import java.util.Scanner; public class BOJ_1271 { public static void main(String[] args) { Scanner in =new Scanner(System.in); BigInteger a = in.nextBigInteger(); BigInteger b = in.nextBigInteger(); System.out.println(a.divide(b));//나눗셈 System.out.println(a.remainder(b));//나머지 in.close(); } }
링크
https://www.acmicpc.net/problem/1271
'알고리즘 문제풀이 > 백준(자바)' 카테고리의 다른 글
[java]백준 소수 찾기 1978번 (0) 2023.05.01 [java]백준 N번째 큰 수 2693번 (0) 2023.04.30 [java]백준 수 정렬하기 3 10989번 (0) 2023.04.28 [java]백준 A+B 26711번 (0) 2023.04.27 [java]백준 접미사 배열 11656번 (0) 2023.04.26