System Error
VJ4Error('ProblemDataNotFoundError', '题目 5af30b0cd3d8a103c03de4da 的数据未找到。', 'kechuang', '5af30b0cd3d8a103c03de4da')
代码
#include<stdio.h>
int main()
{
char a[99],ch;
int i=0,count=1;
while(ch!='\n')
{
ch=getchar();
a[i]=ch;
if(a[i]==' ')
{
count++;
}
i++;
}
a[i]='\0';
printf("%s",a);
printf("%d",count);
return 0;
}