Files
python/TangDou/LanQiaoBei/LanQiaoBeiWhitePaper/11_StrDotCount.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

14 lines
238 B
C++

#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;
}