結果
問題 | No.1010 折って重ねて |
ユーザー | Mottchan |
提出日時 | 2023-03-26 20:25:13 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 543 bytes |
コンパイル時間 | 259 ms |
コンパイル使用メモリ | 81,536 KB |
実行使用メモリ | 75,752 KB |
最終ジャッジ日時 | 2023-10-19 13:50:37 |
合計ジャッジ時間 | 8,312 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 88 ms
75,668 KB |
testcase_01 | AC | 109 ms
75,744 KB |
testcase_02 | AC | 113 ms
75,728 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 120 ms
75,736 KB |
testcase_06 | AC | 134 ms
75,684 KB |
testcase_07 | AC | 142 ms
75,684 KB |
testcase_08 | AC | 116 ms
75,668 KB |
testcase_09 | AC | 125 ms
75,736 KB |
testcase_10 | AC | 117 ms
75,692 KB |
testcase_11 | AC | 125 ms
75,692 KB |
testcase_12 | AC | 132 ms
75,708 KB |
testcase_13 | AC | 123 ms
75,736 KB |
testcase_14 | AC | 117 ms
75,692 KB |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | AC | 119 ms
75,744 KB |
testcase_36 | AC | 106 ms
75,732 KB |
testcase_37 | AC | 152 ms
75,656 KB |
testcase_38 | WA | - |
testcase_39 | AC | 137 ms
75,656 KB |
testcase_40 | WA | - |
testcase_41 | AC | 99 ms
75,624 KB |
testcase_42 | WA | - |
testcase_43 | WA | - |
testcase_44 | WA | - |
testcase_45 | WA | - |
ソースコード
from itertools import product x,y,h = map(int, input().split()) dp = 0 for pro in product((0, 1), repeat=18):#0:横を折る、1:縦を折る a = x*1000 b = y*1000 c = h ans = 0 for i in range(18): 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)