Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 290 Bytes

File metadata and controls

22 lines (13 loc) · 290 Bytes

Algorithm

소스코드 블록은 다음과 같이 작성할 수 있습니다.

n = int(input())

a=list(map(int,input().split()))
b=list(map(int,input().split()))

s = 0

for i in range(n):
  s += min(a) * max(b)
  a.pop(a.index(min(a)))
  b.pop(b.index(max(b)))

print(s)