結果
問題 | No.183 たのしい排他的論理和(EASY) |
ユーザー | 👑 rin204 |
提出日時 | 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 = 14tf = [False] * (1 << m)tf[0] = Truestack = [0]while stack:x = stack.pop()for a in A:if not tf[a ^ x]:tf[a ^ x] = Truestack.append(a ^ x)print(sum(tf))