Files
python/TangDou/LanQiaoBei/LanQiaoBeiWhitePaper/3_lanqiaoCount.cpp

19 lines
379 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include <bits/stdc++.h>
using namespace std;
int cnt;
/**
asdfAcdcdfLanQiaoCsldfjsdLanqiAoxvcxvx
*/
int main() {
string a;
cin >> a;
for (int i = 0; i < a.size(); i++)
if (a[i] >= 'A' && a[i] <= 'Z')a[i] += 32;
for (int i = 0; i < a.size(); i++)
if (a.substr(i, 7) == "lanqiao") cnt++;
printf("%d", cnt);
return 0;
}