結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー shobonvipshobonvip
提出日時 2022-03-12 14:45:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 5,000 ms
コード長 149 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 87,032 KB
実行使用メモリ 76,504 KB
最終ジャッジ日時 2023-10-15 03:53:49
合計ジャッジ時間 2,769 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,240 KB
testcase_01 AC 71 ms
71,208 KB
testcase_02 AC 71 ms
71,192 KB
testcase_03 AC 73 ms
71,280 KB
testcase_04 AC 72 ms
71,132 KB
testcase_05 AC 73 ms
71,136 KB
testcase_06 AC 74 ms
71,244 KB
testcase_07 AC 80 ms
76,224 KB
testcase_08 AC 82 ms
76,440 KB
testcase_09 AC 80 ms
76,504 KB
testcase_10 AC 79 ms
76,404 KB
testcase_11 AC 83 ms
76,240 KB
testcase_12 AC 73 ms
71,004 KB
testcase_13 AC 74 ms
71,156 KB
testcase_14 AC 77 ms
76,244 KB
testcase_15 AC 80 ms
76,368 KB
testcase_16 AC 73 ms
71,296 KB
testcase_17 AC 79 ms
76,440 KB
testcase_18 AC 82 ms
76,392 KB
testcase_19 AC 78 ms
76,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int,input().split()))
b = []
for i in a:
	for j in b:
		i = min(i, i^j)
	if i > 0:
		b.append(i)

print(pow(2, len(b)))
0