06 golf 5 l
This commit is contained in:
parent
4d4589abc9
commit
f7d0407080
9
06/2022-12-06-golf.py
Normal file
9
06/2022-12-06-golf.py
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
a=open("06/i").read()
|
||||||
|
|
||||||
|
for x in [4,14]:
|
||||||
|
for i in range(x,len(a)):
|
||||||
|
if sum([a[i-x:i].count(y) for y in a[i-x:i]]) == x:
|
||||||
|
print(i)
|
||||||
|
break
|
Loading…
Reference in a new issue