#include<iostream>
#include<algorithm>
#include<cstring>
using namespace std;
int main()
{
string str;
cin>>str;
if(str.find("1111111")!=-1||str.find("0000000")!=-1)
{
puts("YES");
}
else puts("NO");
return 0;
}
acwing.寻找字串
最新推荐文章于 2025-12-02 21:26:40 发布
288

被折叠的 条评论
为什么被折叠?



