Skip to content

Commit fd58985

Browse files
committed
[BOJ] 로프 / 실버 4 / 30분
https://www.acmicpc.net/problem/2217
1 parent 0b3cb48 commit fd58985

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
n = int(input())
2+
rope = []
3+
4+
for i in range(n):
5+
rope.append(int(input()))
6+
rope.sort(reverse=True)
7+
8+
for i in range(n):
9+
rope[i] = rope[i] * (i+1)
10+
11+
print(max(rope))

0 commit comments

Comments
 (0)