結果

問題 No.2056 非力なレッド
ユーザー taiga0629kyoprotaiga0629kyopro
提出日時 2022-09-24 08:29:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 314 bytes
コンパイル時間 417 ms
コンパイル使用メモリ 87,196 KB
実行使用メモリ 104,492 KB
最終ジャッジ日時 2023-08-23 21:20:00
合計ジャッジ時間 6,840 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,144 KB
testcase_01 AC 71 ms
71,084 KB
testcase_02 AC 69 ms
71,236 KB
testcase_03 AC 67 ms
71,236 KB
testcase_04 AC 68 ms
71,160 KB
testcase_05 AC 67 ms
71,344 KB
testcase_06 AC 69 ms
71,064 KB
testcase_07 AC 70 ms
71,272 KB
testcase_08 AC 68 ms
71,236 KB
testcase_09 AC 68 ms
71,096 KB
testcase_10 AC 68 ms
71,332 KB
testcase_11 AC 67 ms
71,104 KB
testcase_12 AC 69 ms
71,164 KB
testcase_13 AC 100 ms
96,060 KB
testcase_14 AC 101 ms
95,828 KB
testcase_15 AC 98 ms
96,216 KB
testcase_16 AC 78 ms
76,492 KB
testcase_17 AC 91 ms
89,148 KB
testcase_18 AC 75 ms
76,224 KB
testcase_19 AC 75 ms
76,948 KB
testcase_20 AC 108 ms
101,528 KB
testcase_21 AC 79 ms
79,212 KB
testcase_22 AC 104 ms
96,116 KB
testcase_23 AC 99 ms
93,380 KB
testcase_24 AC 85 ms
83,636 KB
testcase_25 AC 112 ms
102,364 KB
testcase_26 AC 112 ms
104,492 KB
testcase_27 AC 111 ms
101,972 KB
testcase_28 AC 124 ms
100,472 KB
testcase_29 AC 124 ms
100,592 KB
testcase_30 AC 126 ms
100,412 KB
testcase_31 AC 127 ms
100,388 KB
testcase_32 AC 128 ms
100,400 KB
testcase_33 AC 127 ms
100,524 KB
testcase_34 AC 134 ms
100,508 KB
testcase_35 AC 126 ms
100,396 KB
testcase_36 AC 127 ms
100,200 KB
testcase_37 AC 128 ms
100,456 KB
testcase_38 AC 70 ms
71,432 KB
testcase_39 AC 71 ms
71,288 KB
testcase_40 AC 72 ms
71,164 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


N,X,M=map(int,input().split())
A=list(map(int,input().split()))
ans=0
while 1:
    flag=0
    for i in range(N-1,-1,-1):
        if A[i]>=X:
            flag=1
            ans+=i+1
            for j in range(i+1):
                A[j]//=2
            break
    if flag==0:break
print("Yes" if ans<=M else "No")

0