Wonderful Multisets by rotary-o

using C=System.Console;class M{static void Main(){for(long b,n=1;(b=C.Read()%9)>0;n=b<2?1:b<5?n+b*2-7:b<7?n*18:n/18-n%18/9+1)if(b<2)C.WriteLine(n/2);}}

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