Ranking by nn

m=[]
m['Fortran ']=m['Lua ']=m['LabVIEW ']=k=1
for(i=10050;b=/\d+$/(l=readline()),b<m[a=/.+ /(l)]?0:m[m[a]=b]=1,r=k,i;i--)for([j,v]in m[i]&&m)k-=v==i?~print(r,j+v):0

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page