Submission #66389


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (n); ++i)
#define all(x) (x).begin(), (x).end()
#define sz(x) (int)(x).size()
using namespace std;
using ll = long long;
const int INF = 1000000000;
const int MOD = 1000000007;
const ll llINF = 1000000000000000000;
// #include <atcoder/all>
// using namespace atcoder;
void solve () {
int n;
string s;
cin >> n >> s;
int ans = 0;
string t;
while(cin >> t) if(s == t) ++ans;
cout << ans << endl;
return;
}
int main () {
std::cin.tie(nullptr);
std::ios_base::sync_with_stdio(false);
std::cout << std::fixed << std::setprecision(15);
solve();
return 0;
}

ステータス

項目 データ
問題 0003 - 聖書
ユーザー名 tkrokym
投稿日時 2021-05-03 15:40:02
言語 C++11
状態 Accepted
得点 5
ソースコード長 701 Byte
最大実行時間 64 ms
最大メモリ使用量 604 KB

セット

セット 得点 Cases
1 ALL 3 / 3 *
2 SUB1 1 / 1 Alice_in1.txt
3 SUB2 1 / 1 Alice_in2.txt

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
Alice_in1.txt AC 64 ms 604 KB
1
2
Alice_in2.txt AC 61 ms 428 KB
1
3
Alice_in3.txt AC 22 ms 508 KB
1