본문 바로가기
python-algorithm

codeforces 96A - Football

by 무적김두칠 2022. 5. 31.

1
2
3
4
5
6
7
8
def sol(s):
    target1='0000000'
    target2 = '1111111'
    if target1 in s or target2 in s:
        print("YES")
    else :
        print("NO")
sol(input())
cs
반응형

댓글