add: boj/1026.py
This commit is contained in:
10
boj/1026.py
Normal file
10
boj/1026.py
Normal 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)
|
||||||
Reference in New Issue
Block a user