結果

問題 No.1072 A Nice XOR Pair
ユーザー _matumo__matumo_
提出日時 2020-09-24 14:30:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 127 bytes
コンパイル時間 123 ms
コンパイル使用メモリ 10,756 KB
実行使用メモリ 28,968 KB
最終ジャッジ日時 2023-09-10 13:27:11
合計ジャッジ時間 4,962 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,780 KB
testcase_01 AC 15 ms
7,740 KB
testcase_02 AC 15 ms
7,880 KB
testcase_03 AC 15 ms
7,812 KB
testcase_04 WA -
testcase_05 AC 15 ms
7,892 KB
testcase_06 AC 20 ms
8,216 KB
testcase_07 AC 557 ms
28,924 KB
testcase_08 AC 485 ms
7,732 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 538 ms
13,532 KB
testcase_12 AC 589 ms
28,968 KB
権限があれば一括ダウンロードができます

ソースコード

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