結果

問題 No.183 たのしい排他的論理和(EASY)
コンテスト
ユーザー 👑 Kazun
提出日時 2020-11-13 15:48:23
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 53 ms / 5,000 ms
コード長 269 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 183 ms
コンパイル使用メモリ 85,736 KB
実行使用メモリ 64,548 KB
最終ジャッジ日時 2026-04-03 10:46:29
合計ジャッジ時間 1,862 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge5_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N=int(input())
A=list(map(int,input().split()))

for i in range(N):
    if A[i]==0:
        continue

    x=A[i]&(-A[i])
    for j in range(N):
        if i==j:
            continue

        if A[j]&x:
            A[j]^=A[i]

X=len([a for a in A if a])
print(pow(2,X))
0