結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー _matumo__matumo_
提出日時 2019-06-29 14:20:32
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 25 ms / 5,000 ms
コード長 143 bytes
コンパイル時間 435 ms
コンパイル使用メモリ 10,452 KB
実行使用メモリ 12,424 KB
最終ジャッジ日時 2023-09-14 23:12:47
合計ジャッジ時間 2,366 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,856 KB
testcase_01 AC 15 ms
7,764 KB
testcase_02 AC 18 ms
8,924 KB
testcase_03 AC 16 ms
8,288 KB
testcase_04 AC 16 ms
7,740 KB
testcase_05 AC 19 ms
9,696 KB
testcase_06 AC 16 ms
7,740 KB
testcase_07 AC 25 ms
12,380 KB
testcase_08 AC 21 ms
9,868 KB
testcase_09 AC 20 ms
9,792 KB
testcase_10 AC 21 ms
9,800 KB
testcase_11 AC 21 ms
9,744 KB
testcase_12 AC 23 ms
12,044 KB
testcase_13 AC 16 ms
7,820 KB
testcase_14 AC 17 ms
8,120 KB
testcase_15 AC 21 ms
9,956 KB
testcase_16 AC 16 ms
7,788 KB
testcase_17 AC 20 ms
9,740 KB
testcase_18 AC 25 ms
12,424 KB
testcase_19 AC 20 ms
9,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N =int(input())
pa=[int(x) for x in input().split()]
sa={0}
for n in pa:
    if n in sa: continue
    sa|={n^a for a in sa}
    
print(len(sa))
0