結果
問題 |
No.8016 unordered_mapなるたけ落とすマン
|
ユーザー |
|
提出日時 | 2021-01-14 08:59:12 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 241 ms / 1,000 ms |
コード長 | 347 bytes |
コンパイル時間 | 115 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 31,184 KB |
最終ジャッジ日時 | 2024-11-23 21:31:06 |
合計ジャッジ時間 | 12,695 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 48 |
ソースコード
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()