if __name__ == '__main__':
records = []
for _ in range(int(input())):
name = input()
score = float(input())
records.append([name, score])
scores = sorted(set([score for name, score in records]))
print(*sorted([name for name, score in records if scores[1] == score]), sep = "\n")
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
My code... more Pynthonic...