結果

問題 No.184 たのしい排他的論理和(HARD)
ユーザー tyawanmusi
提出日時 2020-07-25 18:48:56
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 140 bytes
コンパイル時間 75 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 23,936 KB
最終ジャッジ日時 2024-07-04 12:54:32
合計ジャッジ時間 7,401 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 2 WA * 3 TLE * 1 -- * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(map(int,input().split()))
b=[0]
for i in a:
  x=i
  for j in b:
    if x^j<x:x^=j
  b.append(x)
print(pow(2,len(b)-1))
0