for(a=[i=j=0];++i-j;print(n))for(n=j=1;a[j]=+readline()||a[j];)n+=a[i]<a[j++]
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page