196 algorithm by test

using System;class z{static void Main(){for(Int64 c=0,d;c++<195;Console.WriteLine(d))for(d=c;d!=n(d);)d+=n(d);}static Int64 n(Int64 a){Int64 b=0;for(;a>0;a/=10){b=b*10+a%10;}return b;}}\x0d
\x0d

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

download

return to the top page