还有比我更短的C代码吗?
#include "stdio.h"
int main(void)
{
char s[5000];
while(scanf("%s", s) != EOF);
printf("%d", strlen(s));
//printf("8");
}