Submission #00115


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <bits/stdc++.h>
#define endl "\n"
#define INF INT_MAX
using namespace std;
int main(){
#define int long long
cin.tie(nullptr);ios::sync_with_stdio(false);
map<int,int>a;
int n;
cin >>n;
for(int i = 0,x;i < n;i++){
cin >>x;
a[x]++;
}
int q;
cin >>q;
for(int i = 0,x;i < q;i++){
cin >>x;
cout <<a[x]<<endl;
}
}

ステータス

項目 データ
問題 0020 - Number-Collection
ユーザー名 ei2332
投稿日時 2023-11-14 08:12:21
言語 C++17
状態 Time Limit Exceeded
得点 10
ソースコード長 353 Byte
最大実行時間 500 ms
最大メモリ使用量 169992 KB

セット

セット 得点 Cases
1 a_NQ-small 5 / 5 *E??
2 b_a-small-positive 5 / 5 *?E?
3 c_a-unique 0 / 15 *??E
4 d_ALL 0 / 25 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input-sample1EEE AC 34 ms 476 KB
1
2
3
4
input-sample2E__ AC 19 ms 432 KB
1
4
input01EEE AC 22 ms 512 KB
1
2
3
4
input02EEE AC 18 ms 524 KB
1
2
3
4
input03E__ AC 21 ms 432 KB
1
4
input04E__ AC 23 ms 604 KB
1
4
input05E__ AC 20 ms 524 KB
1
4
input06_E_ AC 151 ms 11716 KB
2
4
input07_E_ AC 186 ms 10712 KB
2
4
input08_E_ AC 247 ms 14448 KB
2
4
input09__E TLE 500 ms 154668 KB
3
4
input10__E TLE 500 ms 52520 KB
3
4
input11__E TLE 500 ms 169992 KB
3
4
input12___ AC 120 ms 12652 KB
4
input13___ AC 140 ms 12932 KB
4
input14___ AC 104 ms 6556 KB
4
input15___ AC 287 ms 9516 KB
4
input16___ AC 256 ms 9720 KB
4
input17___ AC 232 ms 10268 KB
4
input18 AC 42 ms 10416 KB
4