結果

問題 No.2056 非力なレッド
ユーザー 👑 KazunKazun
提出日時 2022-08-26 21:23:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 150 ms / 2,000 ms
コード長 261 bytes
コンパイル時間 360 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 105,984 KB
最終ジャッジ日時 2024-04-21 23:17:51
合計ジャッジ時間 6,024 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
51,840 KB
testcase_01 AC 55 ms
51,840 KB
testcase_02 AC 52 ms
51,584 KB
testcase_03 AC 49 ms
51,584 KB
testcase_04 AC 52 ms
52,224 KB
testcase_05 AC 49 ms
52,224 KB
testcase_06 AC 50 ms
51,712 KB
testcase_07 AC 49 ms
51,712 KB
testcase_08 AC 49 ms
51,712 KB
testcase_09 AC 50 ms
51,840 KB
testcase_10 AC 49 ms
51,840 KB
testcase_11 AC 50 ms
51,840 KB
testcase_12 AC 50 ms
51,968 KB
testcase_13 AC 110 ms
93,184 KB
testcase_14 AC 112 ms
95,104 KB
testcase_15 AC 105 ms
92,544 KB
testcase_16 AC 67 ms
63,616 KB
testcase_17 AC 97 ms
84,736 KB
testcase_18 AC 68 ms
63,616 KB
testcase_19 AC 70 ms
65,408 KB
testcase_20 AC 115 ms
100,480 KB
testcase_21 AC 78 ms
70,272 KB
testcase_22 AC 107 ms
92,800 KB
testcase_23 AC 105 ms
89,600 KB
testcase_24 AC 80 ms
74,752 KB
testcase_25 AC 129 ms
102,400 KB
testcase_26 AC 133 ms
105,984 KB
testcase_27 AC 126 ms
102,528 KB
testcase_28 AC 141 ms
102,016 KB
testcase_29 AC 145 ms
101,888 KB
testcase_30 AC 147 ms
102,144 KB
testcase_31 AC 142 ms
102,016 KB
testcase_32 AC 142 ms
102,144 KB
testcase_33 AC 148 ms
101,888 KB
testcase_34 AC 149 ms
102,144 KB
testcase_35 AC 144 ms
102,016 KB
testcase_36 AC 142 ms
102,272 KB
testcase_37 AC 150 ms
102,016 KB
testcase_38 AC 50 ms
51,584 KB
testcase_39 AC 49 ms
51,712 KB
testcase_40 AC 49 ms
51,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,X,M=map(int,input().split())
A=list(map(int,input().split()))

T=[0]*N
for i in range(N):
    a=A[i]
    while X<=a:
        T[i]+=1
        a//=2

T.reverse()
for i in range(N):
    if i>=1:
        T[i]=max(T[i],T[i-1])

print("Yes" if sum(T)<=M else "No")
0