結果

問題 No.1072 A Nice XOR Pair
ユーザー NoviNovi
提出日時 2020-06-06 14:52:55
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 137 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 20,484 KB
最終ジャッジ日時 2023-08-25 00:59:01
合計ジャッジ時間 4,055 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
12,380 KB
testcase_01 AC 15 ms
7,852 KB
testcase_02 AC 14 ms
7,844 KB
testcase_03 AC 14 ms
7,804 KB
testcase_04 WA -
testcase_05 AC 15 ms
7,776 KB
testcase_06 AC 75 ms
7,956 KB
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n,x=map(int,input().split())
a=[int(input()) for i in range(n)]
ans=0
for i in range(n):
    b=x^a[i]
    ans+=a.count(b)


print(ans//2)
0