You are viewing a single comment's thread. Return to all comments →
Python
from math import log v = [] for _ in range(int(input())): a, b = map(int, input().split()) v.append((b*log(a), a,b)) k = int(input()) x, a, b = sorted(v)[k-1] print (a, b)
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #99: Largest exponential
You are viewing a single comment's thread. Return to all comments →
Python