Submission #00118


ソースコード

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

ステータス

項目 データ
問題 0004 - Number-Collection
ユーザー名 DAI_0110
投稿日時 2024-07-18 15:47:54
言語 C++17
状態 Time Limit Exceeded
得点 2
ソースコード長 362 Byte
最大実行時間 500 ms
最大メモリ使用量 164688 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input-sample1EEE AC 23 ms 476 KB
1
2
3
4
input-sample2E__ AC 18 ms 432 KB
1
4
input01EEE AC 19 ms 512 KB
1
2
3
4
input02EEE AC 19 ms 528 KB
1
2
3
4
input03E__ AC 22 ms 564 KB
1
4
input04E__ AC 22 ms 480 KB
1
4
input05E__ AC 16 ms 532 KB
1
4
input06_E_ AC 182 ms 11720 KB
2
4
input07_E_ AC 201 ms 10588 KB
2
4
input08_E_ AC 250 ms 14328 KB
2
4
input09__E TLE 500 ms 155056 KB
3
4
input10__E TLE 500 ms 52464 KB
3
4
input11__E TLE 500 ms 164688 KB
3
4
input12___ AC 140 ms 12484 KB
4
input13___ AC 154 ms 12896 KB
4
input14___ AC 101 ms 6392 KB
4
input15___ AC 276 ms 9348 KB
4
input16___ AC 256 ms 9808 KB
4
input17___ AC 246 ms 10228 KB
4
input18 AC 45 ms 10504 KB
4