Last active
December 18, 2015 04:28
-
-
Save relsqui/e18a1ebfbc7a32baf209 to your computer and use it in GitHub Desktop.
AoC Day 17, Mini Version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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