結果
問題 | No.1010 折って重ねて |
ユーザー |
|
提出日時 | 2023-03-26 20:30:10 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 543 bytes |
コンパイル時間 | 270 ms |
コンパイル使用メモリ | 82,008 KB |
実行使用メモリ | 83,380 KB |
最終ジャッジ日時 | 2024-09-19 09:58:58 |
合計ジャッジ時間 | 8,053 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | TLE * 1 -- * 42 |
ソースコード
from itertools import product x,y,h = map(int, input().split()) dp = 0 for pro in product((0, 1), repeat=23):#0:横を折る、1:縦を折る a = x*1000 b = y*1000 c = h ans = 0 for i in range(23): if pro[i]: if a >= c: a /=2 c *=2 ans+=1 else: break else: if b >= c: b /=2 c *=2 ans+=1 else: break dp = max(dp, ans) print(dp)