Skip to content

Commit

Permalink
more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
zehengl committed Oct 3, 2023
1 parent a4072cb commit 0294e78
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cosmicpathoptimization.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import math

m = int(input())
t = [int(d) for d in input().split()]
print(f"{math.floor(sum(t)/m)}")
8 changes: 8 additions & 0 deletions src/spacerace.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
n = int(input())
_ = input()
d = {}
for _ in range(n):
entry = input().split()
d[entry[0]] = float(entry[-1])

print(min(d, key=lambda k: d[k]))

0 comments on commit 0294e78

Please sign in to comment.