Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zehengl committed Aug 28, 2024
2 parents bd9f62a + 14f04da commit 7b661e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fleytitala.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
d = io.read("*n")
b = io.read("*n")
print(2 * d * (1 - 0.5 ^ (b + 1)))
3 changes: 3 additions & 0 deletions src/fleytitala.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
d = int(input())
b = int(input())
print(2 * d * (1 - 0.5 ** (b + 1)))

0 comments on commit 7b661e4

Please sign in to comment.