結果
問題 |
No.183 たのしい排他的論理和(EASY)
|
ユーザー |
![]() |
提出日時 | 2015-08-18 18:44:36 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 172 bytes |
コンパイル時間 | 73 ms |
コンパイル使用メモリ | 6,944 KB |
実行使用メモリ | 16,688 KB |
最終ジャッジ日時 | 2024-07-18 10:14:02 |
合計ジャッジ時間 | 6,629 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 TLE * 1 -- * 12 |
ソースコード
N = input() A = map(int, raw_input().strip().split()) dp = set([0]) for a in A: for x in list(dp): if a ^ x not in dp: dp.add(a ^ x) print(len(dp))