結果

問題 No.8016 unordered_mapなるたけ落とすマン
ユーザー Yug_min_null
提出日時 2021-11-25 12:45:59
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 281 ms / 1,000 ms
コード長 377 bytes
コンパイル時間 1,813 ms
コンパイル使用メモリ 194,932 KB
実行使用メモリ 9,856 KB
最終ジャッジ日時 2024-06-28 03:28:03
合計ジャッジ時間 16,877 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 48
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _GLIBCXX_DEBUG
#define ll long long
#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;

int main(){
  int N, M; cin >> N >> M;
  map<ll, int> mp;
  for(int i = 0; i < N; i++){
    ll A; cin >> A;
    mp[A]++;
  }
  ll B; cin >> B;
  cout << mp[B];
  for(int i = 1; i < M; i++){
    cin >> B;
    cout << " " << mp[B];
  }
  cout << endl;
}
0