add: boj/1026.py

This commit is contained in:
Gyubin Han
2024-05-03 01:11:27 +09:00
parent 60bd74a15e
commit 70c58d72c6

10
boj/1026.py Normal file
View File

@@ -0,0 +1,10 @@
n=int(input())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
a.sort(reverse=True)
bt=sorted(b)
result=0
for i in range(n):
result+=a[i]*bt[i]
print(result)