結果
問題 |
No.183 たのしい排他的論理和(EASY)
|
ユーザー |
|
提出日時 | 2022-01-20 08:56:55 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 259 bytes |
コンパイル時間 | 167 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 67,584 KB |
最終ジャッジ日時 | 2024-11-23 14:22:20 |
合計ジャッジ時間 | 4,611 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 RE * 3 |
ソースコード
n = int(input()) A = list(map(int, input().split())) m = 14 tf = [False] * (1 << m) tf[0] = True stack = [0] while stack: x = stack.pop() for a in A: if not tf[a ^ x]: tf[a ^ x] = True stack.append(a ^ x) print(sum(tf))