結果

問題 No.3016 unordered_mapなるたけ落とすマン
ユーザー hgotohgoto
提出日時 2021-01-14 08:59:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 185 ms / 1,000 ms
コード長 347 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 10,544 KB
実行使用メモリ 29,604 KB
最終ジャッジ日時 2023-08-15 14:05:28
合計ジャッジ時間 10,625 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,856 KB
testcase_01 AC 14 ms
7,872 KB
testcase_02 AC 14 ms
7,796 KB
testcase_03 AC 169 ms
28,444 KB
testcase_04 AC 176 ms
28,920 KB
testcase_05 AC 185 ms
29,572 KB
testcase_06 AC 180 ms
28,840 KB
testcase_07 AC 185 ms
29,360 KB
testcase_08 AC 174 ms
29,604 KB
testcase_09 AC 178 ms
28,656 KB
testcase_10 AC 174 ms
28,772 KB
testcase_11 AC 180 ms
28,508 KB
testcase_12 AC 171 ms
29,200 KB
testcase_13 AC 181 ms
28,668 KB
testcase_14 AC 176 ms
29,408 KB
testcase_15 AC 175 ms
29,312 KB
testcase_16 AC 173 ms
28,340 KB
testcase_17 AC 171 ms
28,400 KB
testcase_18 AC 179 ms
28,492 KB
testcase_19 AC 174 ms
28,496 KB
testcase_20 AC 172 ms
28,412 KB
testcase_21 AC 175 ms
28,372 KB
testcase_22 AC 178 ms
28,568 KB
testcase_23 AC 180 ms
28,440 KB
testcase_24 AC 181 ms
28,560 KB
testcase_25 AC 182 ms
28,384 KB
testcase_26 AC 175 ms
28,512 KB
testcase_27 AC 176 ms
28,496 KB
testcase_28 AC 180 ms
28,476 KB
testcase_29 AC 181 ms
28,468 KB
testcase_30 AC 176 ms
28,476 KB
testcase_31 AC 172 ms
28,552 KB
testcase_32 AC 172 ms
28,448 KB
testcase_33 AC 173 ms
28,396 KB
testcase_34 AC 171 ms
28,484 KB
testcase_35 AC 177 ms
28,472 KB
testcase_36 AC 171 ms
28,540 KB
testcase_37 AC 170 ms
28,336 KB
testcase_38 AC 171 ms
28,292 KB
testcase_39 AC 177 ms
27,212 KB
testcase_40 AC 173 ms
28,316 KB
testcase_41 AC 14 ms
7,856 KB
testcase_42 AC 14 ms
7,852 KB
testcase_43 AC 15 ms
7,868 KB
testcase_44 AC 27 ms
9,504 KB
testcase_45 AC 26 ms
9,372 KB
testcase_46 AC 25 ms
9,500 KB
testcase_47 AC 132 ms
20,128 KB
testcase_48 AC 143 ms
21,672 KB
testcase_49 AC 143 ms
19,184 KB
testcase_50 AC 170 ms
22,648 KB
権限があれば一括ダウンロードができます

ソースコード

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