結果
問題 |
No.1443 Andd
|
ユーザー |
![]() |
提出日時 | 2025-04-16 16:00:42 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 441 bytes |
コンパイル時間 | 219 ms |
コンパイル使用メモリ | 81,560 KB |
実行使用メモリ | 209,160 KB |
最終ジャッジ日時 | 2025-04-16 16:04:34 |
合計ジャッジ時間 | 5,906 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 1 TLE * 1 -- * 18 |
ソースコード
n = int(input()) a = list(map(int, input().split())) current = {(0, 0)} # (U, L) for ai in a: next_set = set() # Process addition for (U, L) in current: total = L + ai new_U = U + (total // 1024) new_L = total % 1024 next_set.add((new_U, new_L)) # Process AND for (U, L) in current: new_L = L & ai next_set.add((0, new_L)) print(len(next_set)) current = next_set