-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path515-football.cpp
More file actions
38 lines (36 loc) · 786 Bytes
/
Copy path515-football.cpp
File metadata and controls
38 lines (36 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Football [96A]
* Problem: https://codeforces.com/problemset/problem/96/A
* Verdict: ACCEPTED Solved: 2020-09-19
* Language: C++17 (GCC 7-32)
* Runtime: 62 ms Memory: 0 KB
* Tags: implementation, strings
* Author: BidoTeima
* Source: https://codeforces.com/contest/96/submission/93284865
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void test_case()
{
string s;
cin>>s;
int count = 1;
for(int i = 0; i < (int)s.length()-1; i++) {
if(s[i] == s[i+1]) count++;
else count = 1;
if(count == 7) {
cout << "YES";
return;
}
}
cout << "NO";
}
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
test_case();
return 0;
}