結果
問題 |
No.8016 unordered_mapなるたけ落とすマン
|
ユーザー |
|
提出日時 | 2016-05-25 21:04:10 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 400 bytes |
コンパイル時間 | 729 ms |
コンパイル使用メモリ | 69,556 KB |
実行使用メモリ | 14,760 KB |
最終ジャッジ日時 | 2024-10-07 14:26:21 |
合計ジャッジ時間 | 7,056 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 TLE * 1 -- * 35 |
ソースコード
#include <iostream> #include <unordered_map> using namespace std; using Dict = unordered_map<long long, int>; int main() { int n, m; long long x; Dict count; cin >> n >> m; for (int ni = 0; ni < n; ++ni) { cin >> x; ++count[x]; } for (int mi = 0; mi < m; ++mi) { cin >> x; if (mi > 0) { cout << " "; } cout << count[x]; } cout << endl; return 0; }