結果
問題 |
No.1072 A Nice XOR Pair
|
ユーザー |
|
提出日時 | 2022-09-01 20:03:27 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 225 bytes |
コンパイル時間 | 246 ms |
コンパイル使用メモリ | 81,884 KB |
実行使用メモリ | 126,428 KB |
最終ジャッジ日時 | 2024-11-14 11:14:38 |
合計ジャッジ時間 | 2,891 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 WA * 3 |
ソースコード
from collections import defaultdict n,x = map(int,input().split()) a = [int(input()) for i in range(n)] d = defaultdict(int) for i in range(n): d[a[i]] += 1 ans = 0 for i in range(n): ans += d[a[i]^x] print(ans//2)