結果

問題 No.1072 A Nice XOR Pair
ユーザー galileo15640215
提出日時 2020-06-05 21:33:27
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 185 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 82,364 KB
実行使用メモリ 131,416 KB
最終ジャッジ日時 2024-12-17 13:36:27
合計ジャッジ時間 19,195 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5 TLE * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

n, x = map(int, input().split())
a = [int(input()) for i in range(n)]
cnt = 0
for i in range(n-1):
    for j in range(i+1, n):
        if a[i]^a[j] == x:
            cnt += 1
print(cnt)
0