반응형
https://www.acmicpc.net/problem/1026
# @Author YoungMinKim
# baekjoon
N=int(input())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
a.sort()
b.sort()
b.reverse()
result=0
for i in range(N):
result+= a[i]*b[i]
print(result)
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 1152 (0) | 2020.08.21 |
---|---|
baekjoon - python - 1110 (0) | 2020.08.21 |
baekjoon - python - 1008 (0) | 2020.08.21 |
baekjoon - python - 1001 (0) | 2020.08.21 |
baekjoon - python -1000 (0) | 2020.08.21 |
댓글