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 |
반응형
'python-algorithm' 카테고리의 다른 글
codeforces 1351A - A+B (Trial Problem) (0) | 2022.06.07 |
---|---|
codeforces 677A - Vanya and Fence (0) | 2022.05.31 |
codeforces 617A - Elephant (0) | 2022.05.31 |
codeforces 1686A - Everything Everywhere All But One (0) | 2022.05.30 |
백준 24544 카카오뷰 큐레이팅 효용성 분석 (0) | 2022.05.26 |
댓글