結果
| 問題 | No.8016 unordered_mapなるたけ落とすマン |
| ユーザー |
titia
|
| 提出日時 | 2026-02-24 07:25:18 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
AC
|
| 実行時間 | 417 ms / 1,000 ms |
| コード長 | 413 bytes |
| 記録 | |
| コンパイル時間 | 786 ms |
| コンパイル使用メモリ | 20,840 KB |
| 実行使用メモリ | 35,996 KB |
| 最終ジャッジ日時 | 2026-02-24 07:25:41 |
| 合計ジャッジ時間 | 22,034 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 48 |
ソースコード
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()
ANS=[]
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:
if b^rand in D:
ANS.append(D[b^rand])
else:
ANS.append(0)
print(*ANS)
titia