Skip to content

Commit

Permalink
Create 3476.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-im-gabriel authored Nov 20, 2023
1 parent b71b091 commit f0ed92b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions 3476.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
def calculate_completion_time(samaro_days, bomdebrecha_days, corria_days):
inverse_rate = 1 / samaro_days + 1 / bomdebrecha_days + 1 / corria_days
completion_time = 1 / inverse_rate
return completion_time

samaro_days, bomdebrecha_days, corria_days = map(int, input().split())

result = calculate_completion_time(samaro_days, bomdebrecha_days, corria_days)
print(f"{result:.3f}")

0 comments on commit f0ed92b

Please sign in to comment.