Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
zehengl committed Jan 9, 2024
1 parent 4c04e38 commit b32f616
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/minimumscalar.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
t = int(input())
for i in range(t):
_ = input()
a = sorted([int(d) for d in input().split()])
b = sorted([int(d) for d in input().split()], reverse=True)
v = sum(x * y for x, y in zip(a, b))
print(f"Case #{i+1}: {v}")

0 comments on commit b32f616

Please sign in to comment.