728x90
반응형

문제 주소: codeforces.com/problemset/problem/96/A

간단한 문자열 문제이다.

"0000000" 또는 "1111111" 이 문자열안에 들어있으면 YES 아니면 NO를 출력해주면 된다.

s = input()
if '0'*7 in s or '1'*7 in s:
    print("YES")
else:
    print("NO")
728x90
반응형

'Agorithm > Codeforces' 카테고리의 다른 글

69A-Young Physicist  (0) 2021.02.16
236A-Boy or Girl  (0) 2021.02.16
281A-Word Capitalization  (0) 2021.02.16
339A-Helpful Maths  (0) 2021.02.16
263A-Beautiful Matrix  (0) 2021.02.16

+ Recent posts