Skip to content

Commit

Permalink
ABC359A Count Takahashi
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicfred committed Jun 24, 2024
1 parent ebb19b4 commit fb27e7d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions atcoder/abc359a_count_takahashi.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Vicfred
// https://atcoder.jp/contests/abc359/tasks/abc359_a
// implementation
#include <iostream>
#include <vector>
#include <string>

using namespace std;

int main() {
int N;
cin >> N;
vector<string> S(N);
int takahashi = 0;
for(int i = 0; i < N; ++i) {
cin >> S[i];
if(S[i] == "Takahashi") {
takahashi += 1;
}
}
cout << takahashi << endl;
return 0;
}

0 comments on commit fb27e7d

Please sign in to comment.