Skip to content

Instantly share code, notes, and snippets.

@bongtrop
Last active December 19, 2015 11:29
Show Gist options
  • Save bongtrop/5947785 to your computer and use it in GitHub Desktop.
Save bongtrop/5947785 to your computer and use it in GitHub Desktop.
ACM PB#H By python
#!/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