結果

問題 No.2056 非力なレッド
ユーザー 👑 H20H20
提出日時 2022-08-26 22:03:35
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 87,072 KB
実行使用メモリ 104,564 KB
最終ジャッジ日時 2023-08-04 01:34:45
合計ジャッジ時間 5,974 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,244 KB
testcase_01 AC 69 ms
71,376 KB
testcase_02 AC 70 ms
71,408 KB
testcase_03 AC 70 ms
71,460 KB
testcase_04 AC 70 ms
71,288 KB
testcase_05 AC 72 ms
71,092 KB
testcase_06 AC 70 ms
71,236 KB
testcase_07 AC 69 ms
71,256 KB
testcase_08 AC 69 ms
71,456 KB
testcase_09 AC 70 ms
71,192 KB
testcase_10 AC 71 ms
71,196 KB
testcase_11 AC 70 ms
71,076 KB
testcase_12 AC 72 ms
71,256 KB
testcase_13 AC 102 ms
96,016 KB
testcase_14 AC 98 ms
95,200 KB
testcase_15 AC 101 ms
95,920 KB
testcase_16 AC 76 ms
76,612 KB
testcase_17 AC 89 ms
88,476 KB
testcase_18 AC 76 ms
76,636 KB
testcase_19 AC 77 ms
76,628 KB
testcase_20 AC 110 ms
101,928 KB
testcase_21 AC 79 ms
79,540 KB
testcase_22 AC 99 ms
95,180 KB
testcase_23 AC 92 ms
92,584 KB
testcase_24 AC 86 ms
83,704 KB
testcase_25 AC 110 ms
101,876 KB
testcase_26 AC 114 ms
104,564 KB
testcase_27 AC 111 ms
102,300 KB
testcase_28 AC 126 ms
100,336 KB
testcase_29 AC 126 ms
100,504 KB
testcase_30 AC 126 ms
100,580 KB
testcase_31 AC 125 ms
100,456 KB
testcase_32 AC 127 ms
100,520 KB
testcase_33 AC 124 ms
100,652 KB
testcase_34 AC 123 ms
100,452 KB
testcase_35 AC 125 ms
100,524 KB
testcase_36 AC 122 ms
100,372 KB
testcase_37 AC 122 ms
100,448 KB
testcase_38 AC 71 ms
71,240 KB
testcase_39 AC 70 ms
71,444 KB
testcase_40 AC 70 ms
71,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,X,M = map(int,input().split())
A = list(map(int,input().split()))
cnt = 0
for i in reversed(range(N)):
    a = A[i]
    i+=1
    while a>>cnt >= X and M>=0:
        cnt+=1
        M-=i
    if M<0:
        print('No')
        exit()
print('Yes')



0