結果

問題 No.1010 折って重ねて
ユーザー lllllll88938494lllllll88938494
提出日時 2022-06-04 06:57:07
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 306 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 81,588 KB
実行使用メモリ 53,360 KB
最終ジャッジ日時 2023-10-21 02:35:13
合計ジャッジ時間 4,101 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,360 KB
testcase_01 AC 42 ms
53,360 KB
testcase_02 AC 39 ms
53,360 KB
testcase_03 AC 39 ms
53,360 KB
testcase_04 AC 36 ms
53,360 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 38 ms
53,360 KB
testcase_08 AC 38 ms
53,360 KB
testcase_09 AC 38 ms
53,360 KB
testcase_10 WA -
testcase_11 AC 38 ms
53,360 KB
testcase_12 AC 38 ms
53,360 KB
testcase_13 AC 39 ms
53,360 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 39 ms
53,360 KB
testcase_17 AC 39 ms
53,360 KB
testcase_18 AC 38 ms
53,360 KB
testcase_19 AC 39 ms
53,360 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 38 ms
53,360 KB
testcase_23 AC 38 ms
53,360 KB
testcase_24 AC 38 ms
53,360 KB
testcase_25 AC 38 ms
53,360 KB
testcase_26 AC 38 ms
53,360 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 37 ms
53,360 KB
testcase_31 WA -
testcase_32 AC 38 ms
53,360 KB
testcase_33 AC 38 ms
53,360 KB
testcase_34 AC 38 ms
53,360 KB
testcase_35 AC 39 ms
53,360 KB
testcase_36 WA -
testcase_37 WA -
testcase_38 AC 38 ms
53,360 KB
testcase_39 WA -
testcase_40 AC 38 ms
53,360 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 AC 39 ms
53,360 KB
testcase_44 AC 39 ms
53,360 KB
testcase_45 AC 38 ms
53,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m,x=map(int,input().split())
n*=1000
m*=1000
cnt=0
def  cal(n,m,x):
    if n >= m and m > x: return n , m/2 , x*2
    else:
        if n > x: return n/2 , m , x*2
        else: return 0 , 0 , 1
    
for i in range(1000):
    if n <= x and m <= x:
        break
    cnt+=1
    n,m,x=cal(n,m,x)
print(cnt)
0