Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
56271 | zhangweiran | 统计次数 | C++ | Accepted | 0 MS | 244 KB | 224 | 2024-11-09 22:47:40 |
#include<bits/stdc++.h> using namespace std; int main() { string s; cin>>s; cout<<s.length()<<endl; int sum=0; for(int i=0;i<s.length();i++){ if(s[i]=='.'){ sum++; } } cout<<sum; return 0; }