'commit'
This commit is contained in:
19
TangDou/LanQiaoBei/LanQiaoBeiWhitePaper/3_lanqiaoCount.cpp
Normal file
19
TangDou/LanQiaoBei/LanQiaoBeiWhitePaper/3_lanqiaoCount.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user