結果

問題 No.2056 非力なレッド
ユーザー RyoSciRyoSci
提出日時 2022-08-26 22:52:37
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 643 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 82,236 KB
実行使用メモリ 105,216 KB
最終ジャッジ日時 2024-04-22 00:56:34
合計ジャッジ時間 3,867 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
51,968 KB
testcase_01 AC 34 ms
51,840 KB
testcase_02 AC 32 ms
52,096 KB
testcase_03 AC 33 ms
52,224 KB
testcase_04 AC 32 ms
52,096 KB
testcase_05 AC 32 ms
51,968 KB
testcase_06 AC 31 ms
51,712 KB
testcase_07 AC 32 ms
51,840 KB
testcase_08 AC 33 ms
51,712 KB
testcase_09 AC 33 ms
51,712 KB
testcase_10 WA -
testcase_11 AC 32 ms
51,968 KB
testcase_12 AC 33 ms
51,968 KB
testcase_13 AC 67 ms
92,672 KB
testcase_14 AC 75 ms
96,384 KB
testcase_15 AC 66 ms
91,904 KB
testcase_16 AC 39 ms
63,360 KB
testcase_17 AC 66 ms
84,992 KB
testcase_18 AC 44 ms
63,232 KB
testcase_19 AC 43 ms
65,024 KB
testcase_20 AC 72 ms
99,712 KB
testcase_21 AC 49 ms
69,504 KB
testcase_22 AC 69 ms
93,440 KB
testcase_23 AC 72 ms
89,472 KB
testcase_24 AC 49 ms
74,368 KB
testcase_25 AC 73 ms
100,224 KB
testcase_26 AC 85 ms
105,216 KB
testcase_27 AC 75 ms
100,992 KB
testcase_28 AC 87 ms
101,632 KB
testcase_29 AC 88 ms
102,080 KB
testcase_30 AC 95 ms
102,016 KB
testcase_31 AC 87 ms
101,632 KB
testcase_32 AC 86 ms
102,016 KB
testcase_33 AC 90 ms
101,888 KB
testcase_34 AC 95 ms
101,632 KB
testcase_35 AC 87 ms
101,792 KB
testcase_36 AC 90 ms
101,776 KB
testcase_37 AC 94 ms
101,888 KB
testcase_38 AC 32 ms
51,968 KB
testcase_39 AC 33 ms
51,840 KB
testcase_40 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

# import pypyjit
# pypyjit.set_param('max_unroll_recursion=-1')
import sys
sys.setrecursionlimit(10**7)
def input(): return sys.stdin.readline().rstrip()


INF = 10**18

n, x, m = map(int, input().split())
a = list(map(int, input().split()))

cnts = [0]*n
for i in range(n):
    tmp = a[i]
    cnt = 0
    while tmp >= x:
        tmp //= 2
        cnt += 1
    cnts[i] = cnt


now = 0
for i in range(n-1, -1, -1):
    cnts[i] = max(0, cnts[i]-now)
    while cnts[i] > 0:
        if not (0 <= i <= min(n-1, m-1)):
            break
        now += 1
        cnts[i] -= 1
        m -= i

if sum(cnts) == 0:
    print("Yes")
else:
    print("No")
0