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.

Update starter.py

+7 -1
+7 -1
2016/starter.py
··· 14 14 # combinations('ABCD', 2) AB AC AD BC BD CD 15 15 # combinations_with_replacement('ABCD', 2) AA AB AC AD BB BC BD CC CD DD 16 16 17 + total = 0 18 + result = [] 19 + 17 20 for i, line in enumerate(fileinput.input()): 18 21 line = line.strip() 19 22 20 23 # data = [x for x in line.split(', ')] 21 24 # data = [x for x in line] 22 25 # data = [int(x) for x in line.split()] 23 - # data = parse_line(line, r'') 26 + data = parse_line(line, r'') 27 + 28 + if i == 0: 29 + print(data)