結果

問題 No.2056 非力なレッド
ユーザー 👑 H20H20
提出日時 2022-08-26 21:58:26
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 249 bytes
コンパイル時間 831 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 103,552 KB
最終ジャッジ日時 2024-04-22 00:03:21
合計ジャッジ時間 3,972 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
52,096 KB
testcase_01 AC 33 ms
52,096 KB
testcase_02 AC 32 ms
51,968 KB
testcase_03 AC 33 ms
51,456 KB
testcase_04 AC 43 ms
51,456 KB
testcase_05 AC 32 ms
52,224 KB
testcase_06 AC 30 ms
51,456 KB
testcase_07 WA -
testcase_08 AC 31 ms
51,968 KB
testcase_09 AC 43 ms
51,328 KB
testcase_10 WA -
testcase_11 AC 31 ms
51,840 KB
testcase_12 AC 33 ms
51,584 KB
testcase_13 AC 65 ms
91,520 KB
testcase_14 WA -
testcase_15 AC 60 ms
91,392 KB
testcase_16 AC 37 ms
61,696 KB
testcase_17 WA -
testcase_18 AC 36 ms
59,520 KB
testcase_19 AC 38 ms
62,592 KB
testcase_20 AC 71 ms
100,352 KB
testcase_21 AC 42 ms
66,560 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 46 ms
73,088 KB
testcase_25 AC 72 ms
100,796 KB
testcase_26 AC 78 ms
103,552 KB
testcase_27 AC 78 ms
100,736 KB
testcase_28 AC 84 ms
101,748 KB
testcase_29 AC 84 ms
102,144 KB
testcase_30 AC 87 ms
101,760 KB
testcase_31 AC 84 ms
102,144 KB
testcase_32 AC 86 ms
101,888 KB
testcase_33 AC 84 ms
101,888 KB
testcase_34 WA -
testcase_35 AC 84 ms
102,144 KB
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 AC 32 ms
51,712 KB
testcase_40 AC 33 ms
51,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M,X = 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