結果

問題 No.2056 非力なレッド
ユーザー RyoSciRyoSci
提出日時 2022-08-26 22:39:02
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 631 bytes
コンパイル時間 336 ms
コンパイル使用メモリ 82,232 KB
実行使用メモリ 105,484 KB
最終ジャッジ日時 2024-04-22 00:44:45
合計ジャッジ時間 4,132 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
52,548 KB
testcase_01 AC 32 ms
52,648 KB
testcase_02 AC 31 ms
52,348 KB
testcase_03 AC 31 ms
52,620 KB
testcase_04 AC 31 ms
53,936 KB
testcase_05 AC 31 ms
52,688 KB
testcase_06 AC 32 ms
52,876 KB
testcase_07 AC 31 ms
53,032 KB
testcase_08 AC 34 ms
52,968 KB
testcase_09 AC 31 ms
52,684 KB
testcase_10 WA -
testcase_11 AC 34 ms
53,668 KB
testcase_12 AC 35 ms
52,308 KB
testcase_13 AC 68 ms
93,360 KB
testcase_14 AC 77 ms
96,500 KB
testcase_15 AC 66 ms
93,012 KB
testcase_16 AC 42 ms
64,384 KB
testcase_17 AC 64 ms
85,136 KB
testcase_18 AC 48 ms
63,456 KB
testcase_19 AC 48 ms
65,404 KB
testcase_20 AC 78 ms
100,304 KB
testcase_21 AC 54 ms
70,672 KB
testcase_22 AC 72 ms
94,220 KB
testcase_23 AC 73 ms
90,204 KB
testcase_24 AC 51 ms
74,840 KB
testcase_25 AC 75 ms
100,856 KB
testcase_26 AC 84 ms
105,484 KB
testcase_27 AC 77 ms
100,860 KB
testcase_28 AC 87 ms
102,296 KB
testcase_29 AC 92 ms
101,956 KB
testcase_30 AC 93 ms
101,968 KB
testcase_31 AC 89 ms
102,220 KB
testcase_32 AC 87 ms
102,208 KB
testcase_33 AC 97 ms
101,844 KB
testcase_34 AC 102 ms
102,072 KB
testcase_35 AC 88 ms
101,948 KB
testcase_36 AC 90 ms
101,752 KB
testcase_37 AC 97 ms
101,792 KB
testcase_38 AC 34 ms
52,492 KB
testcase_39 AC 33 ms
53,072 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 i > min(n-1, m-1):
            break
        now += 1
        cnts[i] -= 1
        m -= i

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