diff --git a/Algorithm/BOJ/11399.py b/Algorithm/BOJ/11399.py new file mode 100644 index 0000000..94a5a2f --- /dev/null +++ b/Algorithm/BOJ/11399.py @@ -0,0 +1,11 @@ +n = int(input()) +arr = list(map(int, input().split())) + +answer = 0 +arr.sort() + +for i in arr: + answer += i * n + n = n-1 + +print(answer) \ No newline at end of file