結果

問題 No.3016 unordered_mapなるたけ落とすマン
ユーザー rin204rin204
提出日時 2022-03-26 14:39:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 201 ms / 1,000 ms
コード長 192 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 31,180 KB
最終ジャッジ日時 2024-04-23 06:40:01
合計ジャッジ時間 12,356 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,752 KB
testcase_01 AC 33 ms
10,752 KB
testcase_02 AC 29 ms
10,752 KB
testcase_03 AC 187 ms
31,084 KB
testcase_04 AC 197 ms
29,780 KB
testcase_05 AC 198 ms
30,684 KB
testcase_06 AC 201 ms
30,604 KB
testcase_07 AC 195 ms
30,568 KB
testcase_08 AC 196 ms
31,124 KB
testcase_09 AC 196 ms
31,164 KB
testcase_10 AC 197 ms
31,176 KB
testcase_11 AC 195 ms
30,052 KB
testcase_12 AC 197 ms
31,124 KB
testcase_13 AC 196 ms
31,172 KB
testcase_14 AC 194 ms
31,064 KB
testcase_15 AC 193 ms
30,732 KB
testcase_16 AC 199 ms
31,180 KB
testcase_17 AC 193 ms
31,004 KB
testcase_18 AC 194 ms
31,100 KB
testcase_19 AC 192 ms
31,028 KB
testcase_20 AC 191 ms
31,076 KB
testcase_21 AC 190 ms
30,932 KB
testcase_22 AC 190 ms
31,072 KB
testcase_23 AC 189 ms
31,144 KB
testcase_24 AC 192 ms
30,876 KB
testcase_25 AC 198 ms
29,872 KB
testcase_26 AC 194 ms
30,896 KB
testcase_27 AC 187 ms
30,716 KB
testcase_28 AC 190 ms
30,640 KB
testcase_29 AC 196 ms
30,540 KB
testcase_30 AC 192 ms
30,428 KB
testcase_31 AC 191 ms
30,392 KB
testcase_32 AC 187 ms
30,136 KB
testcase_33 AC 186 ms
29,796 KB
testcase_34 AC 194 ms
30,716 KB
testcase_35 AC 189 ms
30,332 KB
testcase_36 AC 187 ms
30,264 KB
testcase_37 AC 189 ms
30,332 KB
testcase_38 AC 187 ms
30,204 KB
testcase_39 AC 187 ms
30,360 KB
testcase_40 AC 191 ms
30,220 KB
testcase_41 AC 30 ms
10,624 KB
testcase_42 AC 30 ms
10,624 KB
testcase_43 AC 30 ms
10,752 KB
testcase_44 AC 42 ms
12,288 KB
testcase_45 AC 42 ms
12,160 KB
testcase_46 AC 42 ms
12,032 KB
testcase_47 AC 148 ms
22,676 KB
testcase_48 AC 160 ms
24,936 KB
testcase_49 AC 154 ms
22,360 KB
testcase_50 AC 189 ms
26,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
cnt = {}
for a in A:
    cnt[a] = cnt.get(a, 0) + 1

print(*[cnt.get(b, 0) for b in B])
0