capital and small letters by nn

int[]t="$System.in"
s=t.size()-1
print~(1..2**s).sum{List o=(char[])t
for(i=s;i--&&(t[i]^=32)<96;)0
o}.join('')

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

download

return to the top page