Browse Source

Add 'C.py'

webturing 4 years ago
parent
commit
e84d98bde8
1 changed files with 6 additions and 0 deletions
  1. 6 0
      C.py

+ 6 - 0
C.py

@@ -0,0 +1,6 @@
+n,s,h = int(input()),0,100
+s -= h
+for i in range(n):
+    s += 2 * h
+    h /= 2
+print('%.4f'%s)