結果

問題 No.3016 unordered_mapなるたけ落とすマン
ユーザー vorg101vorg101
提出日時 2016-05-22 12:36:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 236 ms / 1,000 ms
コード長 217 bytes
コンパイル時間 143 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 29,636 KB
最終ジャッジ日時 2024-04-16 12:16:21
合計ジャッジ時間 12,337 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,624 KB
testcase_01 AC 30 ms
10,624 KB
testcase_02 AC 30 ms
10,624 KB
testcase_03 AC 217 ms
29,268 KB
testcase_04 AC 233 ms
29,308 KB
testcase_05 AC 228 ms
29,244 KB
testcase_06 AC 232 ms
29,372 KB
testcase_07 AC 230 ms
29,360 KB
testcase_08 AC 232 ms
29,224 KB
testcase_09 AC 227 ms
29,340 KB
testcase_10 AC 224 ms
29,332 KB
testcase_11 AC 232 ms
29,188 KB
testcase_12 AC 226 ms
29,256 KB
testcase_13 AC 229 ms
29,268 KB
testcase_14 AC 227 ms
29,276 KB
testcase_15 AC 235 ms
29,636 KB
testcase_16 AC 234 ms
29,264 KB
testcase_17 AC 228 ms
29,252 KB
testcase_18 AC 226 ms
29,228 KB
testcase_19 AC 233 ms
29,196 KB
testcase_20 AC 234 ms
29,304 KB
testcase_21 AC 227 ms
29,168 KB
testcase_22 AC 227 ms
29,276 KB
testcase_23 AC 227 ms
29,260 KB
testcase_24 AC 227 ms
29,100 KB
testcase_25 AC 226 ms
29,048 KB
testcase_26 AC 224 ms
29,068 KB
testcase_27 AC 228 ms
29,124 KB
testcase_28 AC 227 ms
29,064 KB
testcase_29 AC 230 ms
28,852 KB
testcase_30 AC 228 ms
28,740 KB
testcase_31 AC 236 ms
28,752 KB
testcase_32 AC 231 ms
28,416 KB
testcase_33 AC 227 ms
28,184 KB
testcase_34 AC 235 ms
28,068 KB
testcase_35 AC 234 ms
27,920 KB
testcase_36 AC 228 ms
27,772 KB
testcase_37 AC 223 ms
27,900 KB
testcase_38 AC 217 ms
27,768 KB
testcase_39 AC 225 ms
27,868 KB
testcase_40 AC 222 ms
27,748 KB
testcase_41 AC 28 ms
10,624 KB
testcase_42 AC 29 ms
10,624 KB
testcase_43 AC 28 ms
10,496 KB
testcase_44 AC 45 ms
11,904 KB
testcase_45 AC 43 ms
11,904 KB
testcase_46 AC 44 ms
11,904 KB
testcase_47 AC 178 ms
22,968 KB
testcase_48 AC 188 ms
23,760 KB
testcase_49 AC 186 ms
21,764 KB
testcase_50 AC 196 ms
19,740 KB
権限があれば一括ダウンロードができます

ソースコード

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