problemscpp
A collection of my answers to algorithm problems in c++.
acwing
acwing4203
静态 Public 成员函数
|
所有成员列表
acwing::acwing4203类 参考
#include <
acwing.h
>
静态 Public 成员函数
static int
main
(istream &, ostream &)
详细描述
在文件
acwing.h
第
72
行定义.
成员函数说明
◆
main()
int acwing::acwing4203::main
(
istream &
cin
,
ostream &
cout
)
static
在文件
acwing.cpp
第
146
行定义.
146
{
147
string
str;
148
cin >> str;
149
int
count0 = 0;
150
int
count1 = 0;
151
for
(
const
char
c: str) {
152
if
(c ==
'1'
) {
153
count1++;
154
count0 = 0;
155
}
else
{
156
count0++;
157
count1 = 0;
158
}
159
if
(count1 == 7 || count0 == 7) {
160
cout <<
"YES"
;
161
return
0;
162
}
163
}
164
cout <<
"NO"
;
165
return
0;
166
}
被这些函数引用
acwing::TEST()
.
该类的文档由以下文件生成:
acwing.h
acwing.cpp
制作者
1.9.2