結果
| 問題 | No.1010 折って重ねて |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-20 21:31:33 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 240 bytes |
| 記録 | |
| コンパイル時間 | 187 ms |
| コンパイル使用メモリ | 85,888 KB |
| 実行使用メモリ | 114,448 KB |
| 最終ジャッジ日時 | 2026-05-25 17:57:48 |
| 合計ジャッジ時間 | 4,139 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 TLE * 1 -- * 41 |
ソースコード
def dfs(x, y, h):
res = 0
if(x > h):
res = max(res, dfs(x, y*2, h*4) + 1)
if(y > h):
res = max(res, dfs(x*2, y, h*4) + 1)
return res
x,y,h = map(int, input().split())
x *= 1000
y *= 1000
print(dfs(x,y,h))