fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. double h;
  10. Scanner sc = new Scanner(System.in);
  11. h = sc.nextInt();
  12. double p = Math.sqrt(2*h/9.8075);
  13. System.out.printf("%.4f", p);
  14. sc.close();
  15. }
  16. }
  17.  
Success #stdin #stdout 0.07s 2184192KB
stdin
5

stdout
1.0098