for(;M=readline(i=s=r='').match(/\d+ ?/g);print(r))for(;s-=c=M[i++];)r+=s+eval(M.join('+'))/2?c:+c+'|'
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page