結果

問題 No.2416 vs Slime
コンテスト
ユーザー 310icecrystal
提出日時 2023-09-16 20:55:16
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 229 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 236 ms
コンパイル使用メモリ 96,104 KB
実行使用メモリ 1,343,276 KB
最終ジャッジ日時 2026-08-05 10:21:34
合計ジャッジ時間 10,383 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 23 MLE * 3 -- * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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