結果

問題 No.1010 折って重ねて
ユーザー Mottchan
提出日時 2023-03-26 20:43:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 246 bytes
コンパイル時間 197 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-09-19 09:59:33
合計ジャッジ時間 2,977 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 43
権限があれば一括ダウンロードができます

ソースコード

diff #

x,y,h=map(int,input().split())

if x < y:
    a = x*1000
    b = y*1000
    c = h
else:
    a = y*1000
    b = x*1000
    c = h

ans = 0

while a > h:
    a /= 2
    h *= 2
    ans += 1

while b > h:
    b /= 2
    h *= 2
    ans += 1

print(ans)
0