結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー 👑 KazunKazun
提出日時 2020-11-13 15:48:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 86 ms / 5,000 ms
コード長 269 bytes
コンパイル時間 668 ms
コンパイル使用メモリ 86,852 KB
実行使用メモリ 76,468 KB
最終ジャッジ日時 2023-09-30 02:07:53
合計ジャッジ時間 3,501 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,184 KB
testcase_01 AC 71 ms
71,204 KB
testcase_02 AC 72 ms
71,072 KB
testcase_03 AC 72 ms
71,076 KB
testcase_04 AC 71 ms
70,936 KB
testcase_05 AC 70 ms
71,196 KB
testcase_06 AC 73 ms
71,024 KB
testcase_07 AC 86 ms
76,424 KB
testcase_08 AC 85 ms
76,364 KB
testcase_09 AC 84 ms
76,468 KB
testcase_10 AC 83 ms
76,408 KB
testcase_11 AC 85 ms
76,316 KB
testcase_12 AC 73 ms
71,152 KB
testcase_13 AC 74 ms
70,696 KB
testcase_14 AC 80 ms
76,304 KB
testcase_15 AC 86 ms
76,296 KB
testcase_16 AC 72 ms
71,096 KB
testcase_17 AC 82 ms
76,304 KB
testcase_18 AC 84 ms
76,036 KB
testcase_19 AC 78 ms
75,796 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]^=A[i]

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