結果

問題 No.2056 非力なレッド
ユーザー ああいいああいい
提出日時 2022-08-28 11:28:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 108 ms / 2,000 ms
コード長 347 bytes
コンパイル時間 447 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 102,156 KB
最終ジャッジ日時 2024-04-23 10:21:29
合計ジャッジ時間 5,648 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
51,712 KB
testcase_01 AC 40 ms
52,096 KB
testcase_02 AC 41 ms
51,584 KB
testcase_03 AC 40 ms
52,096 KB
testcase_04 AC 40 ms
51,968 KB
testcase_05 AC 41 ms
51,840 KB
testcase_06 AC 41 ms
51,840 KB
testcase_07 AC 43 ms
51,456 KB
testcase_08 AC 40 ms
51,584 KB
testcase_09 AC 40 ms
51,584 KB
testcase_10 AC 40 ms
51,584 KB
testcase_11 AC 40 ms
51,712 KB
testcase_12 AC 40 ms
51,712 KB
testcase_13 AC 80 ms
90,112 KB
testcase_14 AC 71 ms
88,552 KB
testcase_15 AC 77 ms
89,728 KB
testcase_16 AC 48 ms
62,080 KB
testcase_17 AC 67 ms
79,232 KB
testcase_18 AC 48 ms
59,904 KB
testcase_19 AC 51 ms
62,592 KB
testcase_20 AC 90 ms
97,536 KB
testcase_21 AC 54 ms
66,304 KB
testcase_22 AC 76 ms
88,320 KB
testcase_23 AC 70 ms
84,224 KB
testcase_24 AC 62 ms
72,576 KB
testcase_25 AC 91 ms
98,048 KB
testcase_26 AC 91 ms
101,844 KB
testcase_27 AC 85 ms
98,560 KB
testcase_28 AC 105 ms
101,992 KB
testcase_29 AC 104 ms
102,016 KB
testcase_30 AC 108 ms
102,140 KB
testcase_31 AC 107 ms
102,052 KB
testcase_32 AC 104 ms
101,888 KB
testcase_33 AC 106 ms
102,156 KB
testcase_34 AC 102 ms
101,888 KB
testcase_35 AC 106 ms
101,996 KB
testcase_36 AC 103 ms
102,004 KB
testcase_37 AC 101 ms
101,988 KB
testcase_38 AC 37 ms
51,840 KB
testcase_39 AC 41 ms
51,584 KB
testcase_40 AC 40 ms
51,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,X,M = map(int,input().split())
A = list(map(int,input().split()))

import sys
now = 0
for i in range(N - 1,-1,-1):
    a = A[i]
    a >>= now
    count = 0
    while a >= X:
        count += 1
        a >>= 1
    if count * (i + 1) > M:
        print('No')
        exit()
    else:
        M -= count * (i + 1)
        now += count
print('Yes')
0