Codeforces_96A

来源:互联网 发布:inso网络 编辑:程序博客网 时间:2024/05/09 10:49
#include <iostream>#include <string>using namespace std;int main(){string z_o;int Count, length, Max;char cur;while(cin >> z_o){length = z_o.size();cur = z_o[0];Max = Count = 1;for(int i = 1; i < length; i++){if(z_o[i] == cur)Count++;else{cur = z_o[i];Count = 1;}if(Count > Max)Max = Count;}if(Max >= 7)cout << "YES" << endl;elsecout << "NO" << endl;}return 0;}

0 0