結果

問題 No.2056 非力なレッド
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-08-26 21:38:00
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 282 bytes
コンパイル時間 596 ms
コンパイル使用メモリ 87,312 KB
実行使用メモリ 104,684 KB
最終ジャッジ日時 2023-08-04 01:02:03
合計ジャッジ時間 6,503 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,288 KB
testcase_01 AC 73 ms
71,340 KB
testcase_02 AC 72 ms
71,188 KB
testcase_03 AC 71 ms
71,516 KB
testcase_04 AC 71 ms
71,140 KB
testcase_05 AC 69 ms
71,412 KB
testcase_06 AC 68 ms
71,448 KB
testcase_07 AC 70 ms
71,368 KB
testcase_08 AC 72 ms
71,508 KB
testcase_09 AC 72 ms
71,268 KB
testcase_10 AC 72 ms
71,404 KB
testcase_11 AC 71 ms
71,132 KB
testcase_12 AC 69 ms
71,408 KB
testcase_13 AC 106 ms
96,380 KB
testcase_14 AC 109 ms
96,108 KB
testcase_15 AC 103 ms
96,212 KB
testcase_16 AC 79 ms
76,772 KB
testcase_17 AC 102 ms
89,708 KB
testcase_18 AC 83 ms
76,904 KB
testcase_19 AC 82 ms
77,120 KB
testcase_20 AC 115 ms
102,124 KB
testcase_21 AC 82 ms
79,656 KB
testcase_22 AC 108 ms
96,296 KB
testcase_23 AC 104 ms
93,660 KB
testcase_24 AC 88 ms
83,752 KB
testcase_25 AC 118 ms
102,340 KB
testcase_26 AC 118 ms
104,684 KB
testcase_27 AC 117 ms
101,884 KB
testcase_28 AC 129 ms
100,732 KB
testcase_29 AC 133 ms
100,580 KB
testcase_30 AC 139 ms
100,440 KB
testcase_31 AC 132 ms
100,604 KB
testcase_32 AC 134 ms
100,580 KB
testcase_33 AC 135 ms
100,740 KB
testcase_34 AC 138 ms
100,608 KB
testcase_35 AC 131 ms
100,344 KB
testcase_36 AC 129 ms
100,752 KB
testcase_37 AC 136 ms
100,600 KB
testcase_38 AC 70 ms
71,288 KB
testcase_39 AC 72 ms
71,136 KB
testcase_40 AC 72 ms
71,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,x,m = map(int,input().split())
A = list(map(int,input().split()))
ans = 0
now = 0

for i in range(n)[::-1]:
    a = A[i]
    c = 0
    while a >= x:
        a //= 2
        c += 1
    if c > now:
        ans += (c-now)*(i+1)
    now = max(now,c)
print("Yes" if ans <= m else "No")
0