1 条题解
-
0
C++ :
#include<iostream> #include<string> using namespace std; int main() { string sentence; int length,count=0; char word; getline(cin,sentence); length=sentence.length (); for (int i=0;i<length;++i) { word=sentence[i]; if(word=='e') count++; } cout<<count<<endl; }
- 1
信息
- ID
- 4419
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者