結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー convexineqconvexineq
提出日時 2020-12-10 09:35:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 50 ms / 5,000 ms
コード長 164 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 81,752 KB
実行使用メモリ 62,272 KB
最終ジャッジ日時 2023-10-19 21:24:15
合計ジャッジ時間 2,268 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
53,540 KB
testcase_01 AC 39 ms
53,540 KB
testcase_02 AC 38 ms
53,540 KB
testcase_03 AC 39 ms
53,540 KB
testcase_04 AC 38 ms
53,540 KB
testcase_05 AC 38 ms
53,540 KB
testcase_06 AC 39 ms
53,540 KB
testcase_07 AC 47 ms
62,124 KB
testcase_08 AC 47 ms
62,124 KB
testcase_09 AC 47 ms
62,124 KB
testcase_10 AC 48 ms
62,124 KB
testcase_11 AC 48 ms
62,124 KB
testcase_12 AC 40 ms
53,540 KB
testcase_13 AC 39 ms
53,540 KB
testcase_14 AC 44 ms
60,060 KB
testcase_15 AC 47 ms
62,124 KB
testcase_16 AC 38 ms
53,540 KB
testcase_17 AC 46 ms
60,076 KB
testcase_18 AC 50 ms
62,272 KB
testcase_19 AC 46 ms
59,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
*a, = map(int,input().split())
basis = []
for e in a:
    for b in basis:
        if e > e^b: e ^= b
    if e: basis.append(e)
print(1<<len(basis))
0