結果
| 問題 | No.1072 A Nice XOR Pair |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2020-06-05 21:34:12 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 199 bytes |
| 記録 | |
| コンパイル時間 | 93 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 34,044 KB |
| 最終ジャッジ日時 | 2024-12-17 13:37:45 |
| 合計ジャッジ時間 | 2,087 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 WA * 3 |
ソースコード
import sys
input = sys.stdin.readline
from collections import Counter
N,X=map(int,input().split())
A=Counter([int(input()) for i in range(N)])
ANS=0
for a in A:
ANS+=A[a]*A[a^X]
print(ANS//2)
titia