Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
102351 | 李承瀚 | 单词排序 | C++ | 解答错误 | 0 | 0 MS | 192 KB | 296 | 2023-09-13 13:25:31 |
#include<cstdio> #include<cstring> int main() { char s1[50],s2[50]; int len=0,t=0; while(scanf("%s",&s1)==1) { t++; if(len<strlen(s1)) { len=strlen(s1); strcpy(s2,s1); } } printf("%d\n",t); return 0; }