#백준 2217로프
lope= int(input())
a=[]
for i in range(lope):
n=input()
a.append(int(n))
a.sort(reverse = True)
temp=0
max=0
for i in range(1,lope+1):
temp=int(a[i-1])*(i)
if temp>max:
max = temp
print(max)
'자기개발👨💻 > 코딩 알고리즘' 카테고리의 다른 글
[python] 백준 1912 연속합 (런타임에러) (0) | 2020.07.08 |
---|---|
파이썬 함수 특징 -매개변수 타입 (0) | 2020.07.08 |
[C++] 큐 자료구조 공부하며 (0) | 2020.07.08 |
[python] 백준 2309 일곱난쟁이 (0) | 2020.07.07 |
[python] 백준 1436 영화감독 숌 (0) | 2020.07.07 |
댕청스터디 (댕청이들의 코딩테스트 스터디~^^*) 7월9일자로 시작. (0) | 2020.07.07 |