fork 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. Boolean[] p;
  13. int hurr=1;
  14. for(int i = 0; i < 3; ++i)
  15. {
  16. int value = 9*(hurr*=10);
  17. System.out.printf("%d: %d", i, value);
  18. p = new Boolean[value];
  19. System.out.println("");
  20. }
  21.  
  22. for(int x = 0, i = 90; i < 90000; ++x, i *= 10) // || x < potato, aussuchen
  23. {
  24. System.out.printf("%d: %d", x, i);
  25. p = new Boolean[x];
  26. System.out.println("");
  27. }
  28. }
  29. }
Success #stdin #stdout 0.08s 380160KB
stdin
Standard input is empty
stdout
0: 90
1: 900
2: 9000
0: 90
1: 900
2: 9000