https://www.acmicpc.net/problem/11399
1. 내가 작성한 코드
n = int(input())
time = list(map(int,input().split()))
time.sort()
cnt = 0
total = 0
for i in time:
cnt += i
total += cnt
print(total)
https://www.acmicpc.net/problem/11399
1. 내가 작성한 코드
n = int(input())
time = list(map(int,input().split()))
time.sort()
cnt = 0
total = 0
for i in time:
cnt += i
total += cnt
print(total)
댓글