結果
問題 |
No.1443 Andd
|
ユーザー |
![]() |
提出日時 | 2021-03-26 22:13:58 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 205 bytes |
コンパイル時間 | 561 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 522,872 KB |
最終ジャッジ日時 | 2024-11-28 23:34:15 |
合計ジャッジ時間 | 42,372 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 TLE * 11 MLE * 1 |
ソースコード
n = int(input()) A = list(map(int, input().split())) dp = set() dp.add(0) for a in A: nx = set() for x in dp: nx.add(x+a) nx.add(x&a) dp = nx #print(dp) print(len(dp))