| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151113 | 唐诗阳 | 31单词的长度 | C++ | Wrong Answer | 1 MS | 268 KB | 474 | 2026-04-05 15:19:45 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ string s; cin>>s; int n=s.length(),t=0; for(int i=0;i<n;i++){ if(s[i]==' '){ cout<<t; t=0; } else{ t++; } } return 0; }
------Input------
I will stare no effort to master a good command of advance XXX.
------Answer-----
1,4,5,2,6,2,6,1,4,7,2,7,4
------Your output-----