結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,624 KB
testcase_01 AC 31 ms
10,496 KB
testcase_02 AC 33 ms
10,624 KB
testcase_03 AC 219 ms
31,092 KB
testcase_04 AC 230 ms
30,484 KB
testcase_05 AC 228 ms
31,168 KB
testcase_06 AC 230 ms
31,152 KB
testcase_07 AC 233 ms
31,036 KB
testcase_08 AC 223 ms
31,260 KB
testcase_09 AC 225 ms
31,116 KB
testcase_10 AC 226 ms
31,092 KB
testcase_11 AC 225 ms
30,928 KB
testcase_12 AC 220 ms
31,104 KB
testcase_13 AC 233 ms
30,972 KB
testcase_14 AC 233 ms
30,820 KB
testcase_15 AC 227 ms
30,816 KB
testcase_16 AC 223 ms
30,916 KB
testcase_17 AC 226 ms
30,904 KB
testcase_18 AC 227 ms
30,100 KB
testcase_19 AC 224 ms
30,228 KB
testcase_20 AC 225 ms
30,092 KB
testcase_21 AC 226 ms
30,232 KB
testcase_22 AC 226 ms
30,184 KB
testcase_23 AC 226 ms
29,992 KB
testcase_24 AC 226 ms
30,120 KB
testcase_25 AC 227 ms
30,124 KB
testcase_26 AC 227 ms
30,248 KB
testcase_27 AC 227 ms
30,116 KB
testcase_28 AC 227 ms
30,104 KB
testcase_29 AC 229 ms
30,244 KB
testcase_30 AC 228 ms
30,120 KB
testcase_31 AC 228 ms
30,100 KB
testcase_32 AC 226 ms
30,188 KB
testcase_33 AC 227 ms
30,108 KB
testcase_34 AC 225 ms
30,536 KB
testcase_35 AC 226 ms
30,260 KB
testcase_36 AC 221 ms
30,492 KB
testcase_37 AC 222 ms
30,352 KB
testcase_38 AC 218 ms
30,336 KB
testcase_39 AC 221 ms
30,344 KB
testcase_40 AC 219 ms
30,196 KB
testcase_41 AC 30 ms
10,496 KB
testcase_42 AC 30 ms
10,624 KB
testcase_43 AC 30 ms
10,624 KB
testcase_44 AC 45 ms
11,904 KB
testcase_45 AC 43 ms
12,032 KB
testcase_46 AC 43 ms
12,032 KB
testcase_47 AC 178 ms
20,988 KB
testcase_48 AC 180 ms
25,164 KB
testcase_49 AC 187 ms
21,104 KB
testcase_50 AC 223 ms
24,964 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