結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー otamay6otamay6
提出日時 2019-11-18 10:49:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 2,095 ms / 5,000 ms
コード長 164 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 87,276 KB
実行使用メモリ 259,396 KB
最終ジャッジ日時 2023-09-15 15:25:06
合計ジャッジ時間 11,408 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,596 KB
testcase_01 AC 69 ms
71,540 KB
testcase_02 AC 73 ms
76,108 KB
testcase_03 AC 77 ms
75,980 KB
testcase_04 AC 71 ms
71,468 KB
testcase_05 AC 73 ms
77,352 KB
testcase_06 AC 70 ms
71,568 KB
testcase_07 AC 2,095 ms
259,396 KB
testcase_08 AC 1,075 ms
90,540 KB
testcase_09 AC 752 ms
86,428 KB
testcase_10 AC 891 ms
88,384 KB
testcase_11 AC 1,140 ms
91,704 KB
testcase_12 AC 76 ms
79,880 KB
testcase_13 AC 68 ms
71,456 KB
testcase_14 AC 75 ms
76,776 KB
testcase_15 AC 1,181 ms
92,008 KB
testcase_16 AC 73 ms
75,804 KB
testcase_17 AC 320 ms
80,968 KB
testcase_18 AC 1,673 ms
259,364 KB
testcase_19 AC 194 ms
78,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int,input().split()))

dp=set()
dp.add(0)

for i in range(N):
    fr = list(dp)
    for K in fr:
        dp.add(A[i]^K)
print(len(dp))
0