반응형 113991 baekjoon - python - 11399 www.acmicpc.net/problem/110399 # @Author YoungMinKim # baekjoon import sys N = int(sys.stdin.readline()) x = list(sys.stdin.readline().split()) tmp = list(map(int,x)) tmp = sorted(tmp) hap = 0 result = [] for i in tmp: hap+=i result.append(hap) print(sum(result)) 2020. 9. 13. 이전 1 다음 반응형