結果

問題 No.184 たのしい排他的論理和(HARD)
ユーザー tyawanmusi
提出日時 2020-07-25 18:49:56
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 1,458 ms / 5,000 ms
コード長 159 bytes
コンパイル時間 208 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,904 KB
最終ジャッジ日時 2024-07-04 12:58:11
合計ジャッジ時間 25,286 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 34
権限があれば一括ダウンロードができます

ソースコード

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
  if x==0:continue
  b.append(x)
print(pow(2,len(b)-1))
0