結果

問題 No.1010 折って重ねて
ユーザー atcoderbeginneratcoderbeginner
提出日時 2020-03-31 00:08:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 143 ms / 2,000 ms
コード長 363 bytes
コンパイル時間 557 ms
コンパイル使用メモリ 10,972 KB
実行使用メモリ 29,780 KB
最終ジャッジ日時 2023-09-05 12:00:33
合計ジャッジ時間 9,969 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 138 ms
29,648 KB
testcase_01 AC 143 ms
29,644 KB
testcase_02 AC 141 ms
29,580 KB
testcase_03 AC 135 ms
29,696 KB
testcase_04 AC 141 ms
29,576 KB
testcase_05 AC 142 ms
29,776 KB
testcase_06 AC 139 ms
29,504 KB
testcase_07 AC 138 ms
29,724 KB
testcase_08 AC 142 ms
29,568 KB
testcase_09 AC 137 ms
29,752 KB
testcase_10 AC 139 ms
29,656 KB
testcase_11 AC 138 ms
29,564 KB
testcase_12 AC 139 ms
29,532 KB
testcase_13 AC 137 ms
29,692 KB
testcase_14 AC 139 ms
29,680 KB
testcase_15 AC 138 ms
29,464 KB
testcase_16 AC 137 ms
29,624 KB
testcase_17 AC 137 ms
29,532 KB
testcase_18 AC 134 ms
29,672 KB
testcase_19 AC 133 ms
29,780 KB
testcase_20 AC 137 ms
29,692 KB
testcase_21 AC 136 ms
29,492 KB
testcase_22 AC 134 ms
29,680 KB
testcase_23 AC 138 ms
29,496 KB
testcase_24 AC 137 ms
29,548 KB
testcase_25 AC 138 ms
29,748 KB
testcase_26 AC 141 ms
29,600 KB
testcase_27 AC 139 ms
29,480 KB
testcase_28 AC 140 ms
29,572 KB
testcase_29 AC 139 ms
29,652 KB
testcase_30 AC 135 ms
29,592 KB
testcase_31 AC 135 ms
29,688 KB
testcase_32 AC 137 ms
29,576 KB
testcase_33 AC 137 ms
29,616 KB
testcase_34 AC 135 ms
29,588 KB
testcase_35 AC 133 ms
29,524 KB
testcase_36 AC 136 ms
29,532 KB
testcase_37 AC 136 ms
29,500 KB
testcase_38 AC 135 ms
29,576 KB
testcase_39 AC 140 ms
29,580 KB
testcase_40 AC 137 ms
29,596 KB
testcase_41 AC 137 ms
29,548 KB
testcase_42 AC 135 ms
29,692 KB
testcase_43 AC 135 ms
29,632 KB
testcase_44 AC 138 ms
29,576 KB
testcase_45 AC 141 ms
29,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# import module
import sys
import math
import numpy as np

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

x *= 1000
y *= 1000

def tt(z,h,times):
    while z > h :
        z = z/2
        h = h*2
        times = times+1
    return times

def solve(x,y,h):
    n = tt(min(x,y),h,0)
    h = h * (2**n)
    print(tt(max(x,y),h,n))

if __name__ == "__main__":
    solve(x,y,h)
0