stable partition by uru

var s:string(999);i,j:comp;begin
read(s);for j:=0to 2do for i:=1to length(s)do
write(s[i]:ord(j=ord(s[1]<s[i])+ord(s[1]<=s[i])))end.

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

download

return to the top page