結果

問題 No.8016 unordered_mapなるたけ落とすマン
ユーザー vwxyz
提出日時 2022-10-18 10:09:20
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 203 ms / 1,000 ms
コード長 230 bytes
コンパイル時間 246 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 30,832 KB
最終ジャッジ日時 2024-06-28 19:19:10
合計ジャッジ時間 12,929 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 48
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from collections import Counter
readline=sys.stdin.readline

N,M=map(int,readline().split())
A=Counter(list(map(int,readline().split())))
B=list(map(int,readline().split()))
for i in range(M):
    B[i]=A[B[i]]
print(*B)
0