Skip to content

Instantly share code, notes, and snippets.

@relsqui
Last active December 18, 2015 04:28
Show Gist options
  • Save relsqui/e18a1ebfbc7a32baf209 to your computer and use it in GitHub Desktop.
Save relsqui/e18a1ebfbc7a32baf209 to your computer and use it in GitHub Desktop.
AoC Day 17, Mini Version
import sys,itertools as i
s=map(int,sys.stdin)
r=1
while r:
c=sum(sum(d)==150for d in i.combinations(s,r));r+=1
if c:r=0;print c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment