結果

問題 No.2056 非力なレッド
ユーザー achapiachapi
提出日時 2022-08-27 00:04:58
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 243 bytes
コンパイル時間 192 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 105,560 KB
最終ジャッジ日時 2024-04-22 02:05:00
合計ジャッジ時間 4,309 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
51,968 KB
testcase_01 AC 37 ms
51,712 KB
testcase_02 AC 39 ms
51,712 KB
testcase_03 AC 37 ms
51,840 KB
testcase_04 AC 35 ms
51,840 KB
testcase_05 AC 35 ms
51,328 KB
testcase_06 AC 36 ms
51,712 KB
testcase_07 AC 36 ms
51,456 KB
testcase_08 AC 35 ms
51,584 KB
testcase_09 AC 36 ms
52,096 KB
testcase_10 AC 36 ms
51,968 KB
testcase_11 AC 36 ms
51,712 KB
testcase_12 AC 36 ms
51,584 KB
testcase_13 AC 75 ms
92,160 KB
testcase_14 WA -
testcase_15 AC 72 ms
91,776 KB
testcase_16 AC 46 ms
63,104 KB
testcase_17 WA -
testcase_18 AC 48 ms
62,848 KB
testcase_19 AC 47 ms
64,256 KB
testcase_20 AC 81 ms
99,348 KB
testcase_21 AC 54 ms
69,120 KB
testcase_22 AC 76 ms
91,904 KB
testcase_23 AC 75 ms
88,320 KB
testcase_24 AC 56 ms
74,112 KB
testcase_25 AC 83 ms
100,096 KB
testcase_26 AC 92 ms
105,560 KB
testcase_27 AC 84 ms
100,480 KB
testcase_28 AC 97 ms
101,888 KB
testcase_29 AC 101 ms
102,144 KB
testcase_30 AC 101 ms
101,888 KB
testcase_31 AC 99 ms
101,888 KB
testcase_32 AC 102 ms
102,016 KB
testcase_33 AC 102 ms
102,016 KB
testcase_34 AC 104 ms
101,632 KB
testcase_35 AC 101 ms
102,016 KB
testcase_36 AC 102 ms
102,016 KB
testcase_37 AC 106 ms
102,016 KB
testcase_38 AC 37 ms
52,096 KB
testcase_39 AC 36 ms
51,840 KB
testcase_40 AC 36 ms
51,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,x,m=map(int,input().split())
a=list(map(int,input().split()))
s=[0]*n
for i in range(n):
    c=a[i]
    while c>=x:
        s[i]+=1
        c//=2
r=0
for i in range(n)[::-1]:
    r+=max(0,(s[i]-r)*(i+1))
if r<=m:print("Yes")
else:print("No")
0