Compare commits
11 commits
7f42d47cae
...
17a0b665a5
Author | SHA1 | Date | |
---|---|---|---|
17a0b665a5 | |||
5067c96550 | |||
c63c23c252 | |||
5d6e3ac56f | |||
60c8b8eac1 | |||
9c8bbf40a3 | |||
338f4ef241 | |||
75371082a4 | |||
7b9e5c2ecf | |||
32660da53e | |||
0434ce436e |
3 changed files with 0 additions and 23 deletions
|
@ -1,2 +0,0 @@
|
||||||
391888
|
|
||||||
1754597645339
|
|
|
@ -1 +0,0 @@
|
||||||
5,1,1,4,1,1,4,1,1,1,1,1,1,1,1,1,1,1,4,2,1,1,1,3,5,1,1,1,5,4,1,1,1,2,2,1,1,1,2,1,1,1,2,5,2,1,2,2,3,1,1,1,1,1,1,1,1,5,1,1,4,1,1,1,5,4,1,1,3,3,2,1,1,1,5,1,1,4,1,1,5,1,1,5,1,2,3,1,5,1,3,2,1,3,1,1,4,1,1,1,1,2,1,2,1,1,2,1,1,1,4,4,1,5,1,1,3,5,1,1,5,1,4,1,1,1,1,1,1,1,1,1,2,2,3,1,1,1,1,1,2,1,1,1,1,1,1,2,1,1,1,5,1,1,1,1,4,1,1,1,1,4,1,1,1,1,3,1,2,1,2,1,3,1,3,4,1,1,1,1,1,1,1,5,1,1,1,1,1,1,1,1,4,1,1,2,2,1,2,4,1,1,3,1,1,1,5,1,3,1,1,1,5,5,1,1,1,1,2,3,4,1,1,1,1,1,1,1,1,1,1,1,1,5,1,4,3,1,1,1,2,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,3,3,1,2,2,1,4,1,5,1,5,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,5,1,1,1,4,3,1,1,4
|
|
|
@ -1,20 +0,0 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
import sys
|
|
||||||
import functools
|
|
||||||
|
|
||||||
@functools.cache
|
|
||||||
def spawns(days):
|
|
||||||
acc = days//7
|
|
||||||
days -= 9
|
|
||||||
acc += sum(spawns(days-x*7) for x in range(days//7))
|
|
||||||
return acc
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
inp = [int(i) for i in sys.stdin.readline().split(',')]
|
|
||||||
|
|
||||||
def do(days):
|
|
||||||
spawns.cache_clear()
|
|
||||||
return sum(1 + spawns(days + (6 - fish)) for fish in inp)
|
|
||||||
print(do(80))
|
|
||||||
print(do(256))
|
|
Loading…
Reference in a new issue