From b833f7e889ca5781e8335ae10af24c379e06a9bd Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Sat, 11 Jan 2025 13:59:30 +0000 Subject: [PATCH] solutions: 96A --- solutions/football.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 solutions/football.py diff --git a/solutions/football.py b/solutions/football.py new file mode 100644 index 0000000..7706ba9 --- /dev/null +++ b/solutions/football.py @@ -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")