My Advent of Code solutions in Python. kevinyap.ca/2019/12/going-fast-in-advent-of-code/
advent-of-code python
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove extra output in day05.py

+1 -3
+1 -3
2016/day05.py
··· 3 3 4 4 door_id = fileinput.input()[0].strip() 5 5 6 - print "Using door ID: %s" % door_id 7 - 8 6 pass_1 = '' 9 7 pass_2 = [None for _ in range(8)] 10 8 ··· 14 12 digest = md5(door_id + str(i)).hexdigest() 15 13 16 14 if digest.startswith('00000'): 17 - print "Hash found! %s (%08i)" % (digest, i) 15 + # print "Hash found! %s (%08i)" % (digest, i) 18 16 19 17 if len(pass_1) < 8: 20 18 pass_1 += digest[5]