Less than chain by tehtmi (test)

function f(s,M)if s==""then return""else
for l=1,#s do
x=s:sub(-l)if x:sub(1,1)~="0"then
if M==N or#x<#M or#x==#M and x<M then
if f(s:sub(1,-l-1),x)then
return l
end
end
end
end
return N
end
end
while""do print(f(io.read()))end

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

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page