結果

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

ソースコード

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