fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int n;
  6.  
  7. scanf("%d", &n);
  8.  
  9. printf("%.12f\n", 1080.0 / (n - 1));
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 3464KB
stdin
9
stdout
135.000000000000