알고리즘 문제 풀기/BOJ
BOJ 11399 - ATM
bug_maker
2019. 12. 26. 11:35
https://www.acmicpc.net/problem/11399
BOJ 11399 - ATM
작성언어: Python3
n = int(input())
time = list(map(int, input().split()))
totalTime = 0
cumulativeTime = 0
time.sort()
for t in time:
cumulativeTime += t
totalTime += cumulativeTime
print(totalTime)
pc 환경에서 코드를 보는 것을 권장합니다.