結果

問題 No.1072 A Nice XOR Pair
ユーザー _matumo_
提出日時 2020-09-24 14:30:22
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 127 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 31,556 KB
最終ジャッジ日時 2024-06-28 04:54:10
合計ジャッジ時間 5,120 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

N,X=map(int,input().split())
d={}
m=0
for i in range(N):
    x=int(input())
    d[x]=d.get(x,0)+1
    m+=d.get(x^X,0)
print(m)
0