advent-of-code

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit fb9640846af2e557d9ae6c315d15b29790b4ca5e
parent 74fd1378e99ba47449a3d85a25e834b9297ddb0f
Author: mpizzzle <michael.770211@gmail.com>
Date:   Sat, 16 Dec 2017 18:19:13 +0000

printing answer to part 1

Diffstat:
Mpuzzle16.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/puzzle16.py b/puzzle16.py @@ -2,7 +2,6 @@ with open('files/puzzle16.txt') as f: moves = f.read().split(',') programs = list("abcdefghijklmnop") -print "".join(programs) permutations = [] for d in range(1, 1000): @@ -20,4 +19,5 @@ for d in range(1, 1000): if "".join(programs) == "abcdefghijklmnop": break +print permutations[1] print permutations[1000000000 % d]