fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Main
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. Scanner in = new Scanner(System.in);
  10. double n;
  11. n=in.nextDouble();
  12. double d;
  13. System.out.printf("%.5f",(50*(1-(Math.pow(0.25,n))))/(0.75));
  14. }
  15. }
Success #stdin #stdout 0.2s 2184192KB
stdin
1
stdout
50.00000