Submission #66017


ソースコード

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
32
33
34
35
36
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define str string
#define rep(i,x,n) for(int i=(x);i<=(int)(n);i++)
#define rrep(i,n,x) for(int i=(n);i>=(int)(x);i--)
#define vi vector<int>
#define vll vector<ll>
#define vc vector<char>
#define all(v) v.begin(),v.end()
#define fi first
#define se second
#define P pair<int,int>
#define mk(a,b) make_pair(a,b)
int main(){
cin.tie(nullptr);
ios_base::sync_with_stdio(false);
int n; cin>>n;
string s; cin>>s;
string tmp;
int count=0;
while(cin>>tmp){
if(s==tmp){
count++;
}
}
cout<<count<<'\n';
return 0;
}

ステータス

項目 データ
問題 0003 - 聖書
ユーザー名 ei2005
投稿日時 2021-03-17 13:53:24
言語 C++14
状態 Accepted
得点 5
ソースコード長 689 Byte
最大実行時間 30 ms
最大メモリ使用量 644 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
Alice_in1.txt AC 30 ms 600 KB
1
2
Alice_in2.txt AC 23 ms 560 KB
1
3
Alice_in3.txt AC 18 ms 644 KB
1