题目链接
难度:入门
题解:
#include <cctype>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main()
{
string s;
getline(cin, s); // 读入一行
char ch = getchar();
int res = 0;
for(char c : s)
{
if(tolower(ch) == tolower(c))
res ++;
}
cout << res;
return 0;
}