結果
| 問題 | No.1072 A Nice XOR Pair |
| コンテスト | |
| ユーザー |
d9et
|
| 提出日時 | 2020-06-05 21:27:23 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 172 ms / 2,000 ms |
| コード長 | 191 bytes |
| 記録 | |
| コンパイル時間 | 293 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 108,320 KB |
| 最終ジャッジ日時 | 2026-05-26 17:48:44 |
| 合計ジャッジ時間 | 2,266 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
from collections import defaultdict
dc = defaultdict(int)
n,x = map(int,input().split())
ans = 0
for i in range(n):
a = int(input())
y = x^a
ans += dc[y]
dc[a] += 1
print(ans)
d9et