solutions: 96A
This commit is contained in:
parent
983d532f94
commit
b833f7e889
1 changed files with 16 additions and 0 deletions
16
solutions/football.py
Normal file
16
solutions/football.py
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
positions = input()
|
||||||
|
|
||||||
|
followings = []
|
||||||
|
for idx,i in enumerate(positions):
|
||||||
|
following = 0
|
||||||
|
for j in range(idx,len(positions)):
|
||||||
|
if positions[j] == i:
|
||||||
|
following += 1
|
||||||
|
else:
|
||||||
|
break
|
||||||
|
followings.append(following)
|
||||||
|
|
||||||
|
if max(followings) >= 7:
|
||||||
|
print("YES")
|
||||||
|
else:
|
||||||
|
print("NO")
|
Loading…
Reference in a new issue