Skip to content

Instantly share code, notes, and snippets.

@Baekjoon
Created April 17, 2015 08:37
Show Gist options
  • Save Baekjoon/5d98f9dc819e3c874e37 to your computer and use it in GitHub Desktop.
Save Baekjoon/5d98f9dc819e3c874e37 to your computer and use it in GitHub Desktop.
java bigintger
import java.util.*;
import java.math.*;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
BigInteger a = sc.nextBigInteger();
BigInteger b = sc.nextBigInteger();
BigInteger sum = a.add(b);
System.out.println(sum.toString());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment