結果
| 問題 | No.1072 A Nice XOR Pair |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-05 21:58:17 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 198 bytes |
| 記録 | |
| コンパイル時間 | 124 ms |
| コンパイル使用メモリ | 84,752 KB |
| 実行使用メモリ | 144,016 KB |
| 最終ジャッジ日時 | 2026-05-26 18:56:20 |
| 合計ジャッジ時間 | 4,273 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 TLE * 1 -- * 5 |
ソースコード
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)