Distributing the balls by tester

while 1:m,n=map(int,raw_input().split());b=2**n;print sum((b+1)**n/b**k%b*(-1)**k*(n-k)**m for k in range(n))

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

download

return top