Distributing the balls by mitchs (Rivu Das)

f=lambda n,k:n+k<1or(n>=k>0and f(n-1,k-1)+f(n-1,k))*k
while 1:print f(*map(int,raw_input().split()))

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

download

return top