Submission #00121


ソースコード

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,i;
cin >> n;
map<ll,ll> m;
for(i=0;i<n;i+=1){
cin >> a;
m[a]+=1;
}
cin >> n;
for(i=0;i<n;i+=1){
cin >> a;
cout << m[a] << '\n';
}
return 0;
}

ステータス

項目 データ
問題 0004 - Number-Collection
ユーザー名 DAI_0110
投稿日時 2024-07-18 15:50:06
言語 C++17
状態 Time Limit Exceeded
得点 2
ソースコード長 358 Byte
最大実行時間 500 ms
最大メモリ使用量 168684 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 17 ms 472 KB
1
2
3
4
input-sample2E__ AC 24 ms 556 KB
1
4
input01EEE AC 19 ms 648 KB
1
2
3
4
input02EEE AC 28 ms 668 KB
1
2
3
4
input03E__ AC 29 ms 448 KB
1
4
input04E__ AC 23 ms 496 KB
1
4
input05E__ AC 20 ms 416 KB
1
4
input06_E_ AC 168 ms 11732 KB
2
4
input07_E_ AC 175 ms 10600 KB
2
4
input08_E_ AC 226 ms 14208 KB
2
4
input09__E TLE 500 ms 154296 KB
3
4
input10__E TLE 500 ms 52356 KB
3
4
input11__E TLE 500 ms 168684 KB
3
4
input12___ AC 117 ms 12420 KB
4
input13___ AC 143 ms 12828 KB
4
input14___ AC 107 ms 6452 KB
4
input15___ AC 280 ms 9408 KB
4
input16___ AC 257 ms 9868 KB
4
input17___ AC 247 ms 10288 KB
4
input18 AC 45 ms 10568 KB
4