Files
python/TangDou/LanQiaoBei/LanQiaoBeiWhitePaper/11_StrDotCount.cpp

14 lines
238 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include <bits/stdc++.h>
using namespace std;
string str;
int c2;
int main() {
cin >> str;
for (int i = 0; i < str.size(); i++)
if (str[i] == '.')c2++;
printf("%d \n%d", str.size(), c2);
return 0;
}