結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー 👑 KazunKazun
提出日時 2020-11-13 15:44:50
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 266 bytes
コンパイル時間 309 ms
コンパイル使用メモリ 87,140 KB
実行使用メモリ 76,764 KB
最終ジャッジ日時 2023-09-30 02:07:06
合計ジャッジ時間 3,118 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,288 KB
testcase_01 AC 70 ms
71,164 KB
testcase_02 WA -
testcase_03 AC 70 ms
71,324 KB
testcase_04 AC 69 ms
71,424 KB
testcase_05 AC 71 ms
71,492 KB
testcase_06 AC 70 ms
71,448 KB
testcase_07 AC 81 ms
76,764 KB
testcase_08 AC 80 ms
76,736 KB
testcase_09 AC 81 ms
76,660 KB
testcase_10 AC 80 ms
76,752 KB
testcase_11 AC 82 ms
76,644 KB
testcase_12 AC 69 ms
71,160 KB
testcase_13 AC 69 ms
71,488 KB
testcase_14 AC 76 ms
76,724 KB
testcase_15 AC 80 ms
76,672 KB
testcase_16 WA -
testcase_17 AC 79 ms
76,728 KB
testcase_18 AC 81 ms
76,616 KB
testcase_19 AC 75 ms
76,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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]^=x

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