結果

問題 No.1010 折って重ねて
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-03-30 23:30:10
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 265 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 82,152 KB
実行使用メモリ 53,688 KB
最終ジャッジ日時 2024-04-27 13:17:31
合計ジャッジ時間 3,594 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,536 KB
testcase_01 AC 38 ms
53,424 KB
testcase_02 AC 36 ms
52,376 KB
testcase_03 AC 36 ms
52,268 KB
testcase_04 AC 35 ms
53,148 KB
testcase_05 AC 39 ms
52,320 KB
testcase_06 AC 37 ms
53,072 KB
testcase_07 AC 38 ms
52,296 KB
testcase_08 AC 36 ms
52,776 KB
testcase_09 AC 36 ms
53,048 KB
testcase_10 AC 36 ms
52,820 KB
testcase_11 AC 35 ms
53,016 KB
testcase_12 AC 36 ms
52,156 KB
testcase_13 AC 35 ms
52,964 KB
testcase_14 AC 37 ms
52,324 KB
testcase_15 AC 37 ms
52,084 KB
testcase_16 AC 35 ms
52,628 KB
testcase_17 AC 37 ms
52,264 KB
testcase_18 AC 36 ms
52,412 KB
testcase_19 AC 36 ms
52,696 KB
testcase_20 AC 37 ms
51,968 KB
testcase_21 AC 36 ms
52,520 KB
testcase_22 AC 40 ms
52,948 KB
testcase_23 AC 39 ms
52,436 KB
testcase_24 AC 39 ms
52,520 KB
testcase_25 AC 37 ms
52,032 KB
testcase_26 AC 35 ms
52,840 KB
testcase_27 AC 34 ms
52,284 KB
testcase_28 AC 36 ms
52,700 KB
testcase_29 AC 36 ms
52,100 KB
testcase_30 AC 36 ms
52,948 KB
testcase_31 AC 36 ms
52,064 KB
testcase_32 AC 35 ms
53,540 KB
testcase_33 AC 36 ms
52,560 KB
testcase_34 AC 37 ms
52,488 KB
testcase_35 AC 36 ms
51,704 KB
testcase_36 AC 37 ms
52,248 KB
testcase_37 AC 36 ms
52,220 KB
testcase_38 WA -
testcase_39 AC 37 ms
53,540 KB
testcase_40 WA -
testcase_41 AC 35 ms
52,072 KB
testcase_42 AC 35 ms
53,420 KB
testcase_43 AC 35 ms
51,864 KB
testcase_44 AC 38 ms
52,940 KB
testcase_45 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

x,y,h = map(int,input().split())
x,y = x*1000,y*1000
ans = 0
while True:
    if x > y:
        x,y = y,x
    if x > h:
        x //= 2
        h *= 2
        ans += 1
    elif y > h:
        y //= 2
        h *= 2
        ans += 1
    else:
        break
print(ans)
0