Submission #00114


ソースコード

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:11:19
言語 C++17
状態 Time Limit Exceeded
得点 10
ソースコード長 353 Byte
最大実行時間 500 ms
最大メモリ使用量 168268 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 24 ms 604 KB
1
2
3
4
input-sample2E__ AC 20 ms 688 KB
1
4
input01EEE AC 21 ms 640 KB
1
2
3
4
input02EEE AC 28 ms 528 KB
1
2
3
4
input03E__ AC 22 ms 564 KB
1
4
input04E__ AC 18 ms 608 KB
1
4
input05E__ AC 20 ms 536 KB
1
4
input06_E_ AC 171 ms 11732 KB
2
4
input07_E_ AC 178 ms 10604 KB
2
4
input08_E_ AC 229 ms 14476 KB
2
4
input09__E TLE 500 ms 155336 KB
3
4
input10__E TLE 500 ms 52464 KB
3
4
input11__E TLE 500 ms 168268 KB
3
4
input12___ AC 122 ms 12540 KB
4
input13___ AC 134 ms 12828 KB
4
input14___ AC 102 ms 6448 KB
4
input15___ AC 273 ms 9532 KB
4
input16___ AC 240 ms 9864 KB
4
input17___ AC 250 ms 10276 KB
4
input18 AC 43 ms 10552 KB
4