結果

問題 No.8016 unordered_mapなるたけ落とすマン
ユーザー hgoto
提出日時 2021-01-14 08:58:59
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 347 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 117,036 KB
最終ジャッジ日時 2024-11-23 21:30:00
合計ジャッジ時間 7,547 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample MLE * 3
other MLE * 48
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin
input = lambda: stdin.buffer.readline()

n, m = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
d = {}
for x in a:
    if x in d:
        d[x] += 1
    else:
        d[x] = 1
for x in b:
    if x in d:
        print(d[x], end=' ')
    else:
        print(0, end=' ')
print()
0