fork(1) download
  1.  
  2. import java.util.*;
  3. import java.lang.*;
  4. import java.io.*;
  5.  
  6. class Ideone
  7. {
  8. public static void main(String[] args) {
  9. double T, l, g = 9.8075;
  10. Scanner scanner = new Scanner(System.in);
  11. l = scanner.nextDouble();
  12. T = 2 * Math.PI * Math.sqrt(l / g);
  13. System.out.println(T);
  14. }
  15. }
Success #stdin #stdout 0.16s 321280KB
stdin
1
stdout
2.006322344597585