Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
n = 35
total = 0
for r in range(1, n+1):
res = combination(n, r)
print("{n}C{r} = {res}".format(
n=n,
r=r,
res=res))
total += res
print("合計:", total)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.