結果
問題 |
No.183 たのしい排他的論理和(EASY)
|
ユーザー |
|
提出日時 | 2017-02-10 11:59:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 488 bytes |
コンパイル時間 | 243 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 25,940 KB |
最終ジャッジ日時 | 2024-12-26 14:27:55 |
合計ジャッジ時間 | 46,941 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 TLE * 7 |
ソースコード
import sys def debug(x, table): for name, val in table.items(): if x is val: print('DEBUG:{} -> {}'.format(name, val), file=sys.stderr) return None def solve(): N = int(input()) As = [int(i) for i in input().split()] makable = {0} for a in As: tmp = set() for b in makable: tmp.add(a ^ b) makable = makable.union(tmp) ans = len(makable) print(ans) if __name__ == '__main__': solve()