Last active
December 19, 2015 11:29
-
-
Save bongtrop/5947785 to your computer and use it in GitHub Desktop.
ACM PB#H By python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
num = raw_input("") | |
min = 1000000000 | |
max = 0 | |
for i in range(0,int(num)): | |
input = raw_input("") | |
input = input.split(" ") | |
value = int(input[1])+int(input[2])*100+int(input[3])*10000 | |
if value < min: | |
min = value | |
smin = input[0] | |
if value > max: | |
max = value | |
smax = input[0] | |
print smax + "\n" + smin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment