diff --git a/Codeforces/C++/96A-Football.cpp b/Codeforces/C++/96A-Football.cpp new file mode 100644 index 000000000..658528994 --- /dev/null +++ b/Codeforces/C++/96A-Football.cpp @@ -0,0 +1,31 @@ +#include +using namespace std; +int main() +{ + string s; + cin >> s; + int c = 1, d = 0; + for (int i = 0; s[i] != '\0'; i++) + { + if (s[i] == s[i + 1]) + { + c++; + } + else + { + c = 1; + } + if (c == 7) + { + d = 1; + } + } + if (d == 1) + { + cout << "YES"; + } + else + { + cout << "NO"; + } +} \ No newline at end of file