結果
問題 | No.1072 A Nice XOR Pair |
ユーザー | DrDrpilot |
提出日時 | 2022-02-23 15:40:59 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 177 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 10,664 KB |
実行使用メモリ | 31,624 KB |
最終ジャッジ日時 | 2023-09-14 07:53:39 |
合計ジャッジ時間 | 4,847 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 18 ms
8,508 KB |
testcase_01 | AC | 18 ms
8,340 KB |
testcase_02 | AC | 19 ms
8,388 KB |
testcase_03 | AC | 19 ms
8,408 KB |
testcase_04 | WA | - |
testcase_05 | AC | 19 ms
8,468 KB |
testcase_06 | AC | 23 ms
8,700 KB |
testcase_07 | AC | 566 ms
31,624 KB |
testcase_08 | AC | 465 ms
16,352 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 474 ms
20,040 KB |
testcase_12 | AC | 455 ms
31,540 KB |
ソースコード
n,x=map(int,input().split()) a=[int(input()) for _ in range(n)] from collections import Counter ans=0 b=Counter(a) for i in a: if i^x in b: ans+=b[i^x] print(ans//2)