fork(1) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone {
  6. public static void main (String[] args) throws java.lang.Exception {
  7. int n = 200;
  8.  
  9. long x = 1;
  10. int p = 0;
  11.  
  12. for (int q = n; q != 0; --q) {
  13. for (int w = 0; w < 2; ++w) {
  14. for (; Long.MAX_VALUE / q < x; ++p) {
  15. x = x / 10 + (x % 10 > 5 ? 1 : x % 10 < 5 ? 0 : (x / 10 & 1));
  16. }
  17.  
  18. x *= q;
  19. }
  20. }
  21.  
  22. System.out.println("Somewhere near " + x + " * 10**" + p);
  23. }
  24. }
Success #stdin #stdout 0.13s 50496KB
stdin
Standard input is empty
stdout
Somewhere near 6219812317563792060 * 10**731