結果
| 問題 |
No.1010 折って重ねて
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-12-11 12:15:39 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 2,000 ms |
| コード長 | 287 bytes |
| コンパイル時間 | 769 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2024-12-11 12:15:44 |
| 合計ジャッジ時間 | 3,817 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 43 |
ソースコード
x,y,h = map(int,input().split())
x = x*1000
y = y*1000
ans = 0
while x>h or y>h:
if x<=y:
if x>h:
x = x/2
elif y>h:
y = y/2
else:
if y>h:
y = y/2
elif x>h:
x = x/2
h = h*2
ans += 1
print(ans)