-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathhrwedchallenge.py
More file actions
39 lines (25 loc) · 925 Bytes
/
hrwedchallenge.py
File metadata and controls
39 lines (25 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
if __name__ == '__main__':
for _ in range(int(input())):
name = input()
score = float(input())
scores_list = [{'name' : name, 'score' :score}]
scores = [{'name' : name, 'score' :score}]
score_list = sorted(scores)
for score in range(score_list)
if score == score_list(list1)[-2]
print(score)
if __name__ == '__main__':
for _ in range(int(input())):
name = input()
score = float(input())
scores_list = [{'name' : name, 'score' :score}]
for score in 'scores_list':
x = max('scores_list')
i = x[-2]
for i in score:
if i < lowest_score:
next_lowest_score = lowest_score
lowest_score = i
elif i != lowest_score and i < next_lowest_score:
next_lowest_score = i
print(name, i)