Skip to content

Commit

Permalink
Add 25640.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiyabye authored Jan 10, 2024
1 parent 4aa41d7 commit be387e1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions 25xxx/25640.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#include <iostream>
#include <string>
using namespace std;

void solve(void) {
string a; cin >> a;
int n; cin >> n;

int ans = 0;
while (n--) {
string s; cin >> s;
if (s == a) ans++;
}
cout << ans;
}

int main(void) {
ios::sync_with_stdio(false);
cin.tie(nullptr); cout.tie(nullptr);

solve();
return 0;
}

0 comments on commit be387e1

Please sign in to comment.