Submission #58761


ソースコード

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
#include<bits/stdc++.h>
#define INF 9223372036854775807LL
#define inf 1000000007
#define SYOU(x) setprecision(x+1)
#define lol long long
#define mp make_pair
#define fi first
#define se second
using namespace std;
lol abs(lol x,lol y){return(x>y?x-y:y-x);}
lol max(lol x,lol y){if(x>y)return x;return y;}
lol min(lol x,lol y){if(x<y)return x;return y;}
signed main(){
cin.tie(0);
ios::sync_with_stdio(false);
string w,s;
int n;
int ans=0;
cin >>n>>w;
while(cin >>s){
if(s==w) ans++;
}
cout <<ans<<'\n';
return (0);
}

ステータス

項目 データ
問題 0003 - 聖書
ユーザー名 ei1923
投稿日時 2020-02-21 15:56:35
言語 C++14
状態 Accepted
得点 5
ソースコード長 566 Byte
最大実行時間 27 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 27 ms 604 KB
1
2
Alice_in2.txt AC 24 ms 436 KB
1
3
Alice_in3.txt AC 22 ms 388 KB
1