fork download
  1. count = 0
  2. import itertools
  3. nums = list(range(1,34))
  4. for combination in itertools.combinations(nums, 7):
  5. if sum(combination)==180:
  6. count += 1
  7. print(count)
Success #stdin #stdout 0.68s 7224KB
stdin
Standard input is empty
stdout
1817