結果

問題 No.2056 非力なレッド
ユーザー taiga0629kyoprotaiga0629kyopro
提出日時 2022-08-22 00:48:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 344 bytes
コンパイル時間 247 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 106,880 KB
最終ジャッジ日時 2024-04-18 13:18:00
合計ジャッジ時間 4,991 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
51,968 KB
testcase_01 AC 40 ms
51,968 KB
testcase_02 AC 41 ms
51,584 KB
testcase_03 AC 41 ms
52,224 KB
testcase_04 AC 40 ms
52,096 KB
testcase_05 AC 41 ms
51,968 KB
testcase_06 AC 40 ms
52,096 KB
testcase_07 AC 41 ms
51,584 KB
testcase_08 AC 42 ms
51,712 KB
testcase_09 AC 41 ms
51,840 KB
testcase_10 AC 41 ms
51,968 KB
testcase_11 AC 40 ms
52,224 KB
testcase_12 AC 41 ms
51,584 KB
testcase_13 AC 87 ms
93,568 KB
testcase_14 AC 98 ms
97,152 KB
testcase_15 AC 84 ms
92,928 KB
testcase_16 AC 54 ms
63,488 KB
testcase_17 AC 79 ms
85,376 KB
testcase_18 AC 56 ms
63,616 KB
testcase_19 AC 58 ms
65,408 KB
testcase_20 AC 94 ms
101,120 KB
testcase_21 AC 64 ms
69,632 KB
testcase_22 AC 91 ms
95,616 KB
testcase_23 AC 88 ms
89,984 KB
testcase_24 AC 66 ms
74,880 KB
testcase_25 AC 99 ms
101,760 KB
testcase_26 AC 105 ms
106,880 KB
testcase_27 AC 97 ms
101,888 KB
testcase_28 AC 112 ms
101,888 KB
testcase_29 AC 116 ms
102,144 KB
testcase_30 AC 119 ms
102,280 KB
testcase_31 AC 114 ms
102,144 KB
testcase_32 AC 115 ms
102,272 KB
testcase_33 AC 123 ms
102,272 KB
testcase_34 AC 121 ms
102,020 KB
testcase_35 AC 114 ms
102,160 KB
testcase_36 AC 113 ms
102,144 KB
testcase_37 AC 121 ms
102,016 KB
testcase_38 AC 40 ms
52,096 KB
testcase_39 AC 40 ms
51,712 KB
testcase_40 AC 40 ms
51,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def sol1(n,x,m,A):
    a=A[:]
    need=[0]*(n+1)
    for i in range(n):
        while a[i]>=x:
            need[i]+=1
            a[i]//=2
    for i in range(n-1,-1,-1):
        need[i]=max(need[i],need[i+1])
    if sum(need)<=m:return "Yes"
    return "No"
n,x,m=map(int,input().split())
a=list(map(int,input().split()))
print(sol1(n,x,m,a))
0