Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
3336 | OscarWLY | 统计次数 | C++ | Accepted | 0 MS | 256 KB | 217 | 2023-01-01 15:38:42 |
#include<bits/stdc++.h> using namespace std; int main() { string s; cin>>s; cout<<s.length()<<endl; int ans=0; for(int i=0;i<s.length();i++) { if(s[i]=='.') ans++; } cout<<ans; return 0; }