From fb27e7db84bfaf4aef662eeadbd1524a247765a0 Mon Sep 17 00:00:00 2001 From: vicfred Date: Sun, 23 Jun 2024 19:51:43 -0700 Subject: [PATCH] ABC359A Count Takahashi --- atcoder/abc359a_count_takahashi.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 atcoder/abc359a_count_takahashi.cpp diff --git a/atcoder/abc359a_count_takahashi.cpp b/atcoder/abc359a_count_takahashi.cpp new file mode 100644 index 0000000..a4405ca --- /dev/null +++ b/atcoder/abc359a_count_takahashi.cpp @@ -0,0 +1,23 @@ +// Vicfred +// https://atcoder.jp/contests/abc359/tasks/abc359_a +// implementation +#include +#include +#include + +using namespace std; + +int main() { + int N; + cin >> N; + vector 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; +}