#include <stdio.h>
int main()
{
char c;
int num = 0;
int flag = 1;
while (1)
{
scanf_s("%c", &c, 1);
if (c == ' ')
{
if (num != 0)
{
if (flag != 1)
{
printf(" ");
}
printf("%d\n", num);
num = 0;
flag = 0;
}
continue;
}
if (c == '.')
{
if (num != 0)
{
if (flag != 1)
{
printf(" ");
}
printf("%d\n", num);
}
return 0;
}
num++;
}
return 0;
}
无标题-10
最新推荐文章于 2024-08-20 20:01:22 发布