結果

問題 No.1010 折って重ねて
ユーザー now4est
提出日時 2020-03-20 22:10:45
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 411 bytes
コンパイル時間 238 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-12-15 06:10:57
合計ジャッジ時間 2,858 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

x,y,h = map(int, sys.stdin.readline().strip().split())

count = 0

x = x * 100 * 10
y = y * 100 * 10

def yoko():
    global x,h,count
    x = int(x / 2)
    h = h * 2
    count += 1

def tate():
    global y,h,count
    y = int(y / 2)
    h = h * 2
    count += 1


while True:
    if x >= 2 and x > h:
        yoko()
    elif y >= 2 and y > h:
        tate()
    else:
        break

print(count)
0