Created
November 18, 2014 19:57
-
-
Save juanplopes/398e1132246f0d06a91c to your computer and use it in GitHub Desktop.
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
M = (57, 71, 87, 97, 99, 101, 103, 113, 114, 115, 128, 129, 131, 137, 147, 156, 163, 186) | |
T = [1] + [0]*1024 | |
for i in xrange(len(T)): | |
for m in M: | |
if i-m >= 0: | |
T[i] += T[i-m] | |
print T[1024] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment