結果
| 問題 |
No.1010 折って重ねて
|
| コンテスト | |
| ユーザー |
atcoderbeginner
|
| 提出日時 | 2020-03-31 00:08:11 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 533 ms / 2,000 ms |
| コード長 | 363 bytes |
| コンパイル時間 | 164 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 43,928 KB |
| 最終ジャッジ日時 | 2024-06-23 07:37:34 |
| 合計ジャッジ時間 | 27,481 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 43 |
ソースコード
# 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)
atcoderbeginner