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. int x=1;
  13. int i=-1;
  14. while(x!=0)
  15. {
  16. i++;
  17. x=f(i);
  18. }
  19. System.out.println(""+i);
  20. }
  21.  
  22. static int f(int x)
  23. {
  24. //(x | 1402104596) = (x & 1402104596) + 543244546
  25. return (x | 1402104596) - (x & 1402104596) - 543244546;
  26. }
  27. }
  28.  
  29.  
Success #stdin #stdout 1.54s 711168KB
stdin
Standard input is empty
stdout
1945315862