結果
問題 |
No.1072 A Nice XOR Pair
|
ユーザー |
|
提出日時 | 2020-06-09 11:37:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 730 ms / 2,000 ms |
コード長 | 168 bytes |
コンパイル時間 | 424 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 31,700 KB |
最終ジャッジ日時 | 2024-12-31 11:58:01 |
合計ジャッジ時間 | 5,903 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
#yuki1072 from collections import defaultdict n,x=map(int,input().split()) d=defaultdict(int) res=0 for i in range(n): a=int(input()) res+=d[x^a] d[a]+=1 print(res)