From 70c58d72c631a14f5702449cc40d738fd26e723d Mon Sep 17 00:00:00 2001 From: Gyubin Han <89185979+Gyubin-Han@users.noreply.github.com> Date: Fri, 3 May 2024 01:11:27 +0900 Subject: [PATCH] add: boj/1026.py --- boj/1026.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 boj/1026.py diff --git a/boj/1026.py b/boj/1026.py new file mode 100644 index 0000000..970eb99 --- /dev/null +++ b/boj/1026.py @@ -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)