← Back to List

9237번: 이장님 초대 ↗

Solutions

Python 3
121 B | 121 chars
m=0
n=input()
for i,j in enumerate(sorted(list(map(int,input().split(" "))),reverse=True)):
    m=max(m,i+2+j)
print(m)