11 lines
275 B
Python
11 lines
275 B
Python
#!/usr/bin/env python3
|
|
from collections import Counter
|
|
|
|
counter = Counter(map(int, [x for x in open("input.txt")][0].split(',')))
|
|
counter = [counter.get(idx, 0) for idx in range(0, 9)]
|
|
|
|
for day in range(256):
|
|
counter[(day+7) % 9] += counter[day % 9]
|
|
|
|
print(sum(counter))
|