Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (11 sloc) 0.234 kB
# Take log's
from math import log
import sys
def f(s):
a,b = s.strip().split(",")
a,b = int(a),float(b)
return b*log(a)
l = sys.stdin.readlines()
s = [ (f(j),i,j) for i,j in enumerate(l)]
m = max(s)
print m[1]+1,m[2]
Jump to Line
Something went wrong with that request. Please try again.