結果
| 問題 | No.8016 unordered_mapなるたけ落とすマン |
| ユーザー |
taba
|
| 提出日時 | 2017-05-20 07:52:30 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 71 ms / 1,000 ms |
| コード長 | 546 bytes |
| 記録 | |
| コンパイル時間 | 891 ms |
| コンパイル使用メモリ | 164,128 KB |
| 実行使用メモリ | 11,392 KB |
| 最終ジャッジ日時 | 2026-06-06 16:49:21 |
| 合計ジャッジ時間 | 5,514 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 48 |
ソースコード
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cassert>
#include <random>
#include <vector>
#include <algorithm>
#include <array>
#include <functional>
#include <utility>
#include <regex>
#include <tuple>
#include <map>
#include <set>
#include <iostream>
using namespace std;
int main(){
int n,m;
-scanf("%d%d",&n,&m);
vector<int64_t> a(n),b(m);
map<int64_t,int64_t> c;
for(auto&i:a){
-scanf("%ld",&i);
c[i]++;
}
for(auto&i:b){
-scanf("%ld",&i);
}
for(auto i:b){
printf("%lu ",c[i]);
}
puts("");
return 0;
}
taba