Skip to content

Instantly share code, notes, and snippets.

@jcreixell
Created May 15, 2012 07:41
Show Gist options
  • Save jcreixell/2699787 to your computer and use it in GitHub Desktop.
Save jcreixell/2699787 to your computer and use it in GitHub Desktop.
Darts Game Solution
import itertools
for i in range(1,10):
for j in itertools.combinations_with_replacement([16,18,23,24,39,40], i):
if sum(j) == 100:
print j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment