結果
| 問題 |
No.1072 A Nice XOR Pair
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-05 21:58:17 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 198 bytes |
| コンパイル時間 | 148 ms |
| コンパイル使用メモリ | 81,964 KB |
| 実行使用メモリ | 137,404 KB |
| 最終ジャッジ日時 | 2024-12-17 14:45:21 |
| 合計ジャッジ時間 | 19,359 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 TLE * 6 |
ソースコード
import itertools
n,x=map(int,input().split())
a=[]
for i in range(n):
num=int(input())
a.append(num)
ans=0
for l,r in itertools.combinations(a,2):
if(x==(l^r)):
ans+=1
print(ans)