题解 | #字符串最后一个单词的长度#
字符串最后一个单词的长度
https://www.nowcoder.com/practice/8c949ea5f36f422594b306a2300315da
#include <stdio.h> #include <string.h> int main() { int a, b; char str[5000]; while(scanf("%s",str)!=EOF); printf("%d",strlen(str)); return 0; }
字符串最后一个单词的长度
https://www.nowcoder.com/practice/8c949ea5f36f422594b306a2300315da
#include <stdio.h> #include <string.h> int main() { int a, b; char str[5000]; while(scanf("%s",str)!=EOF); printf("%d",strlen(str)); return 0; }
相关推荐