結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー tnoda_tnoda_
提出日時 2015-08-18 18:38:32
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 157 bytes
コンパイル時間 462 ms
コンパイル使用メモリ 6,660 KB
実行使用メモリ 17,540 KB
最終ジャッジ日時 2023-09-25 12:51:52
合計ジャッジ時間 6,971 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,264 KB
testcase_01 AC 11 ms
6,160 KB
testcase_02 AC 14 ms
6,300 KB
testcase_03 AC 12 ms
6,104 KB
testcase_04 AC 11 ms
6,140 KB
testcase_05 AC 16 ms
7,052 KB
testcase_06 AC 11 ms
5,988 KB
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
A = map(int, raw_input().strip().split())

s = set([0])
for a in A:
    t = s.copy()
    for x in s:
        t.add(a ^ x)
    s = t
print(len(s))
0