solutions: 96A

This commit is contained in:
Muhammad Nauman Raza 2025-01-11 13:59:30 +00:00
parent 983d532f94
commit b833f7e889
Signed by: devraza
GPG key ID: 91EAD6081011574B

16
solutions/football.py Normal file
View 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")