fork(1) download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. // your code goes here
  13. long a = 2539586720l;
  14. long b = 77284752003l;
  15. a*=b;
  16. System.out.println(a);
  17. a=(long)1e12;
  18. b=(long)1e12;
  19. a*=b;
  20. System.out.println(a);
  21. }
  22. }
Success #stdin #stdout 0.03s 711168KB
stdin
Standard input is empty
stdout
-6642854965492867616
2003764205206896640