Submission #21335


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include<bits/stdc++.h>
using namespace std;
main(){
int n,ans=0;
string key,s;
char c;
cin>>n>>key;
for(int i=0;i<n;i++){
do{
cin>>s;
scanf("%c",&c);
if(s==key)ans++;
}while(c!='\n');
}
cout<<ans<<endl;
}

ステータス

項目 データ
問題 0003 - 聖書
ユーザー名 ei1516
投稿日時 2017-07-11 16:54:25
言語 C++11
状態 Accepted
得点 5
ソースコード長 262 Byte
最大実行時間 35 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 19 ms 480 KB
1
2
Alice_in2.txt AC 35 ms 708 KB
1
3
Alice_in3.txt AC 13 ms 552 KB
1