Skip to content

Commit cca5208

Browse files
authored
Create Find the Runner-Up Score.py
1 parent d0ad06e commit cca5208

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Find the Runner-Up Score!
2+
# https://www.hackerrank.com/challenges/find-second-maximum-number-in-a-list/problem
3+
4+
5+
if __name__ == '__main__':
6+
n = int(input())
7+
arr = map(int, input().split())
8+
print(sorted(list(set(arr)), reverse=True)[1])

0 commit comments

Comments
 (0)