Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96353 | Kevin | 31单词的长度 | C++ | Accepted | 1 MS | 276 KB | 253 | 2024-11-06 15:46:22 |
#include<bits/stdc++.h> using namespace std; int main() { char s[1000]; int flag=0; while(cin>>s) { flag++; int len=strlen(s); if(flag==1){ cout<<len; } else{ cout<<','<<len; } } return 0; }