백준 1271

    백준 1271번 (엄청난 부자2)

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 // 입력 범위가 10의 1000제곱으로 거의 무한에 가까운 숫자를 사용한다. // 숫자의 범위가 무한인 BigInteger를 이용한다.(문자열 형태로 이루어져 있다.) import java.util.Scanner; import java.math.BigInteger; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); BigInteger a = scan.nextBigInteger(); BigInteger b = scan.nextBigInteger(); // 문자열 형태로 이루어져..