結果

問題 No.2056 非力なレッド
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2022-08-26 21:30:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 437 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 113,036 KB
最終ジャッジ日時 2024-04-21 23:27:42
合計ジャッジ時間 5,080 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
51,584 KB
testcase_01 AC 42 ms
51,840 KB
testcase_02 AC 47 ms
51,456 KB
testcase_03 AC 41 ms
52,224 KB
testcase_04 AC 41 ms
52,352 KB
testcase_05 AC 43 ms
51,968 KB
testcase_06 AC 42 ms
51,968 KB
testcase_07 AC 45 ms
51,712 KB
testcase_08 AC 43 ms
51,584 KB
testcase_09 AC 43 ms
52,096 KB
testcase_10 AC 42 ms
51,712 KB
testcase_11 AC 42 ms
51,968 KB
testcase_12 AC 45 ms
51,968 KB
testcase_13 AC 100 ms
99,840 KB
testcase_14 AC 109 ms
101,760 KB
testcase_15 AC 97 ms
99,712 KB
testcase_16 AC 58 ms
65,024 KB
testcase_17 AC 90 ms
89,856 KB
testcase_18 AC 60 ms
64,256 KB
testcase_19 AC 60 ms
66,688 KB
testcase_20 AC 107 ms
109,440 KB
testcase_21 AC 72 ms
72,064 KB
testcase_22 AC 103 ms
100,352 KB
testcase_23 AC 104 ms
97,152 KB
testcase_24 AC 73 ms
78,080 KB
testcase_25 AC 112 ms
109,696 KB
testcase_26 AC 121 ms
102,400 KB
testcase_27 AC 113 ms
109,952 KB
testcase_28 AC 130 ms
112,520 KB
testcase_29 AC 132 ms
112,676 KB
testcase_30 AC 135 ms
112,964 KB
testcase_31 AC 126 ms
112,396 KB
testcase_32 AC 133 ms
112,648 KB
testcase_33 AC 133 ms
113,036 KB
testcase_34 AC 135 ms
112,524 KB
testcase_35 AC 125 ms
112,652 KB
testcase_36 AC 130 ms
112,520 KB
testcase_37 AC 139 ms
112,392 KB
testcase_38 AC 42 ms
51,968 KB
testcase_39 AC 43 ms
51,712 KB
testcase_40 AC 44 ms
51,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

"""

"""

import sys
from sys import stdin

N,X,M = map(int,stdin.readline().split())

A = list(map(int,stdin.readline().split()))


B = []

for i in range(N):

    cnt = 0
    while A[i] >= X:
        cnt += 1
        A[i] //= 2

    B.append(cnt)

B.append(0)

for i in range(N-1,-1,-1):
    B[i] = max(B[i],B[i+1])

for i in range(N):
    M -= (B[i]-B[i+1]) * (i+1)

#print (B,M)

if M >= 0:
    print ("Yes")
else:
    print ("No")
0