結果
問題 |
No.1072 A Nice XOR Pair
|
ユーザー |
![]() |
提出日時 | 2020-08-25 11:42:58 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 167 bytes |
コンパイル時間 | 378 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 27,172 KB |
最終ジャッジ日時 | 2024-11-06 11:10:22 |
合計ジャッジ時間 | 4,793 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 TLE * 1 -- * 5 |
ソースコード
from itertools import combinations n,x=map(int,input().split()) a=[int(input()) for _ in range(n)] ans=0 for i in range(n-1): ans+=a[i+1:].count(x^a[i]) print(ans)