結果
| 問題 |
No.1010 折って重ねて
|
| コンテスト | |
| ユーザー |
uni_python
|
| 提出日時 | 2020-07-12 22:52:48 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 790 bytes |
| コンパイル時間 | 413 ms |
| コンパイル使用メモリ | 82,124 KB |
| 実行使用メモリ | 54,156 KB |
| 最終ジャッジ日時 | 2024-11-06 06:27:50 |
| 合計ジャッジ時間 | 3,587 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 43 |
ソースコード
import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def main():
mod=10**9+7
x,y,h=MI()
x*=1000
y*=1000
ans=0
for _ in range(30):
if min(x,y)>h:
if x<y:
if x>h:
x=x/2
h=h*2
ans+=1
else:
if y>h:
y=y/2
h=h*2
ans+=1
elif x>h:
x=x/2
h=h*2
ans+=1
elif y>h:
y=y/2
h=h*2
ans+=1
print(ans)
main()
uni_python