結果

問題 No.8016 unordered_mapなるたけ落とすマン
ユーザー titia
提出日時 2026-02-24 07:22:58
言語 Python3
(3.14.3 + numpy 2.4.2 + scipy 1.17.0)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
RE  
実行時間 -
コード長 332 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 665 ms
コンパイル使用メモリ 20,832 KB
実行使用メモリ 35,960 KB
最終ジャッジ日時 2026-02-24 07:23:24
合計ジャッジ時間 23,900 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2 RE * 1
other WA * 39 RE * 9
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
input = sys.stdin.readline

from random import randint

rand=randint(10**8,10**9)

n,m=list(map(int,input().split()))
A=list(map(int,input().split()))
B=list(map(int,input().split()))

D=dict()

for a in A:
    if a^rand in D:
        D[a^rand]=D[a^rand]+1
    else:
        D[a^rand]=1

for b in B:
    print(D[b^rand])
0