結果

問題 No.2416 vs Slime
ユーザー 310icecrystal
提出日時 2023-09-16 20:55:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 229 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 82,296 KB
実行使用メモリ 813,200 KB
最終ジャッジ日時 2024-07-03 20:01:49
合計ジャッジ時間 9,234 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 23 MLE * 2 -- * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque
H,A = map(int,input().split())
ans = 0
Deq = deque()
Deq.append(H)
while Deq:
    h = Deq.popleft()
    h2 = h//2
    ans += 1
    if h2 >= 1:
        Deq.append(h2)
        Deq.append(h2)
print(ans)
0