結果
問題 |
No.1010 折って重ねて
|
ユーザー |
|
提出日時 | 2020-03-20 21:31:33 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 240 bytes |
コンパイル時間 | 485 ms |
コンパイル使用メモリ | 82,344 KB |
実行使用メモリ | 163,200 KB |
最終ジャッジ日時 | 2024-12-15 04:18:04 |
合計ジャッジ時間 | 11,612 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 42 TLE * 1 |
ソースコード
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))