結果
問題 |
No.1072 A Nice XOR Pair
|
ユーザー |
|
提出日時 | 2020-06-05 21:57:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 198 bytes |
コンパイル時間 | 216 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 30,976 KB |
最終ジャッジ日時 | 2024-12-17 14:41:21 |
合計ジャッジ時間 | 19,498 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)