Collatz Problem by pooq

for(a:stdin.get_s(2).to_i;a.p>1;)a=a%2<1?a/2:3*a+1;

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

download

return to the top page