Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
zehengl committed Oct 15, 2024
1 parent 3bc391c commit 60bf85e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/babylonian.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
n = int(input())
for _ in range(n):
d = [int(v or 0) for v in input().split(",")]
print(sum(v * (60**i) for i, v in enumerate(d[::-1])))

0 comments on commit 60bf85e

Please sign in to comment.