Skip to content

Instantly share code, notes, and snippets.

@Baekjoon
Created April 17, 2015 08:36
Show Gist options
  • Save Baekjoon/a1bacdc4e015980e9aae to your computer and use it in GitHub Desktop.
Save Baekjoon/a1bacdc4e015980e9aae to your computer and use it in GitHub Desktop.
java-biginteger
import java.util.*;
import java.math.*;
public class Main {
public static void main(String args[]) {
BigInteger a = new BigInteger("9223372036854775807");
BigInteger b = new BigInteger("9223372036854775808");
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