Submission #01940


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <bits/stdc++.h>
#define PB push_back
#define MP make_pair
#define REP(i,n) for (int i=0;i<(n);i++)
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define ALL(a) (a).begin(),(a).end()
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> P;
double EPS=1e-8;
int INF=1e9;
int main(){
int n;
string word,s;
cin>>n;
cin>>word;
int cnt=0;
while(cin>>s){
if(s==word)cnt++;
}
cout<<cnt<<endl;
}

ステータス

項目 データ
問題 0003 - 聖書
ユーザー名 西田武志
投稿日時 2015-12-03 13:15:19
言語 C++11
状態 Accepted
得点 5
ソースコード長 520 Byte
最大実行時間 25 ms
最大メモリ使用量 708 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
Alice_in1.txt AC 21 ms 476 KB
1
2
Alice_in2.txt AC 18 ms 708 KB
1
3
Alice_in3.txt AC 25 ms 688 KB
1