杭电acm2030 哪里错了?求帮忙~~

2024-12-03 21:38:12
推荐回答(1个)
回答1:

include
using namespace std;
int count( char *str )
{
int num = 0;
char *p = str;
while( *p )
{
if( unsigned char(*p) > 0x80 )
{
p+=2;
num++;
}
else
{
p++;
}
}
return num;
}
int main()
{
int n;
char str[1000];
while (cin >>n)
{
gets(str);
for (int i=0;i {
gets(str);
cout < }
}
return 0;