fork download
  1. import java.util.*;
  2. import java.math.*;
  3.  
  4.  
  5. class Main
  6. {
  7. public static void main (String[] args)
  8. {
  9. double S;
  10. Scanner input = new Scanner(System.in);
  11. S = input.nextDouble();
  12. S = Math.ceil((Math.log(S/100+1)/Math.log(1.1)));
  13. int a = (int) S;
  14. System.out.print(a);
  15. }
  16. }
Success #stdin #stdout 0.07s 2184192KB
stdin
4343
stdout
40