結果

問題 No.1010 折って重ねて
ユーザー nehan_der_thal
提出日時 2020-03-20 22:02:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 547 ms
コンパイル使用メモリ 82,156 KB
実行使用メモリ 53,632 KB
最終ジャッジ日時 2024-12-15 05:51:39
合計ジャッジ時間 3,449 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 43
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, h = map(int, input().split())
a, b = a*1000, b*1000
a, b = min(a, b), max(a, b)
c = 0
h1=h2=h
while a > h1:
    h1 *= 4
    h2 *= 2
    c += 1
while b > h2:
    h2 *= 4
    c += 1
print(c)
0