| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 316273 | 黄浙峰老师 | 【C5-5】统计单词个数 | C++ | Accepted | 100 | 1 MS | 256 KB | 207 | 2025-04-06 14:32:10 |
#include<bits/stdc++.h> using namespace std; int main(){ string s; int c=0; getline(cin,s); for(int i=0;i<s.size();i++){ if(s[i]==' '&&s[i+1]!=' '||i==0){ c++; } } cout<<c<<endl; }