import sys l=i=1 S=lambda x:-int(x.split()[-1]) for d in sorted(sys.stdin,key=S): if S(d)-l:r=i i+=1;l=S(d);print r,d.strip()
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page