結果

問題 No.1010 折って重ねて
ユーザー rlangevinrlangevin
提出日時 2023-01-12 20:09:47
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 475 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 87,116 KB
実行使用メモリ 77,500 KB
最終ジャッジ日時 2023-08-25 01:32:02
合計ジャッジ時間 21,184 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
77,080 KB
testcase_01 AC 196 ms
77,156 KB
testcase_02 AC 189 ms
76,964 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 366 ms
76,876 KB
testcase_06 AC 332 ms
76,892 KB
testcase_07 AC 356 ms
76,652 KB
testcase_08 AC 290 ms
77,136 KB
testcase_09 AC 345 ms
76,968 KB
testcase_10 AC 361 ms
77,052 KB
testcase_11 AC 372 ms
76,908 KB
testcase_12 AC 316 ms
77,020 KB
testcase_13 AC 372 ms
76,672 KB
testcase_14 AC 365 ms
77,020 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 437 ms
76,860 KB
testcase_20 WA -
testcase_21 AC 427 ms
76,984 KB
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 AC 76 ms
76,360 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 AC 405 ms
76,984 KB
testcase_35 AC 214 ms
76,876 KB
testcase_36 AC 207 ms
77,156 KB
testcase_37 AC 368 ms
77,108 KB
testcase_38 WA -
testcase_39 AC 340 ms
77,164 KB
testcase_40 WA -
testcase_41 AC 170 ms
76,832 KB
testcase_42 AC 416 ms
76,876 KB
testcase_43 WA -
testcase_44 WA -
testcase_45 AC 425 ms
77,088 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

px, py, ph = map(int, input().split())
px, py = 1000 * px, 1000 * py
ans = 0
for i in range(1 << 21):
    cnt = 0
    x, y, h = px, py, ph
    for j in range(21):
        if (i >> j) & 1:
            if x > h:
                cnt += 1
            else:
                break
            y *= 2
        else:
            if y > h:
                cnt += 1
            else:
                break
            x *= 2
        h *= 4
    ans = max(ans, cnt)
print(ans)            
0