non increasing subsequence by hallvabo

while 1:
 m=s=''
 for c in`input()`:s*=s[-1:]>=c;s+=c;m=max(m,s,key=len)
 print m

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

download

return to the top page