fork download
  1. import java.math.*;
  2.  
  3. class Main {
  4. public static void main(String[] args) {
  5. BigInteger x = new BigInteger("12345678901234567890");
  6. BigInteger y = new BigInteger("9876543210");
  7. System.out.println(x.multiply(y));
  8. }
  9. }
  10.  
  11. //https://pt.stackoverflow.com/q/115809/101
Success #stdin #stdout 0.06s 32792KB
stdin
Standard input is empty
stdout
121932631124828532111263526900