結果
問題 |
No.8016 unordered_mapなるたけ落とすマン
|
ユーザー |
![]() |
提出日時 | 2017-09-09 13:33:29 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 281 ms / 1,000 ms |
コード長 | 384 bytes |
コンパイル時間 | 850 ms |
コンパイル使用メモリ | 74,864 KB |
実行使用メモリ | 9,856 KB |
最終ジャッジ日時 | 2024-11-07 09:19:51 |
合計ジャッジ時間 | 16,156 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 48 |
ソースコード
#include<map> #include<iostream> #include<stdio.h> using namespace std; int main(){ int N,M; scanf("%d %d",&N,&M); map<long long,int> mp; for(int i=0;i<N;i++){ long long int a; cin>>a; mp[a]++; } for(int i=0;i<M;i++){ long long int b; cin>>b; if(i==M-1) cout<<mp[b]<<endl; else cout<<mp[b]<<" "; } }