結果

問題 No.8016 unordered_mapなるたけ落とすマン
ユーザー vorg101
提出日時 2016-05-22 12:36:59
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 250 ms / 1,000 ms
コード長 217 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 29,632 KB
最終ジャッジ日時 2024-10-07 06:30:36
合計ジャッジ時間 12,834 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 48
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
N, M = map(int, input().split(' '))
c = defaultdict(int)
for a in map(int, input().split(' ')):
    c[a] += 1
for b in map(int, input().split(' ')):
    print(c[b], end=' ')
print()
0