結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー lloyzlloyz
提出日時 2023-05-20 11:17:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 2,784 ms / 5,000 ms
コード長 187 bytes
コンパイル時間 502 ms
コンパイル使用メモリ 86,908 KB
実行使用メモリ 209,396 KB
最終ジャッジ日時 2023-08-23 08:28:16
合計ジャッジ時間 15,912 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,128 KB
testcase_01 AC 71 ms
71,128 KB
testcase_02 AC 75 ms
75,936 KB
testcase_03 AC 72 ms
75,936 KB
testcase_04 AC 69 ms
71,128 KB
testcase_05 AC 76 ms
77,448 KB
testcase_06 AC 71 ms
71,120 KB
testcase_07 AC 2,784 ms
209,396 KB
testcase_08 AC 1,551 ms
146,068 KB
testcase_09 AC 1,104 ms
139,740 KB
testcase_10 AC 1,311 ms
141,908 KB
testcase_11 AC 1,666 ms
147,572 KB
testcase_12 AC 78 ms
80,156 KB
testcase_13 AC 69 ms
71,076 KB
testcase_14 AC 75 ms
76,532 KB
testcase_15 AC 1,746 ms
148,508 KB
testcase_16 AC 72 ms
75,692 KB
testcase_17 AC 461 ms
130,924 KB
testcase_18 AC 2,229 ms
202,752 KB
testcase_19 AC 276 ms
128,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ans = set([0])
for i in range(n):
    a = A[i]
    ans_c = ans.copy()
    for ele in ans_c:
        ans.add(ele ^ a)
print(len(ans))
0