You are viewing a single comment's thread. Return to all comments →
print(*(q[0]+1 for q in sorted([(i, sum(map(int, input().split()))) for i in range(int(input()))], key=lambda x: (x[1], x[0]))))
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Jim and the Orders
You are viewing a single comment's thread. Return to all comments →