結果

問題 No.2056 非力なレッド
ユーザー flygonflygon
提出日時 2022-09-19 15:59:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 287 bytes
コンパイル時間 299 ms
コンパイル使用メモリ 86,848 KB
実行使用メモリ 104,688 KB
最終ジャッジ日時 2023-08-23 18:56:42
合計ジャッジ時間 6,556 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,180 KB
testcase_01 AC 75 ms
71,080 KB
testcase_02 AC 75 ms
71,072 KB
testcase_03 AC 76 ms
71,376 KB
testcase_04 AC 73 ms
71,304 KB
testcase_05 AC 72 ms
71,036 KB
testcase_06 AC 72 ms
71,308 KB
testcase_07 AC 72 ms
71,264 KB
testcase_08 AC 73 ms
71,376 KB
testcase_09 AC 72 ms
71,144 KB
testcase_10 AC 73 ms
71,148 KB
testcase_11 AC 73 ms
71,080 KB
testcase_12 AC 71 ms
71,228 KB
testcase_13 AC 112 ms
96,168 KB
testcase_14 AC 98 ms
95,316 KB
testcase_15 AC 104 ms
96,260 KB
testcase_16 AC 78 ms
76,308 KB
testcase_17 AC 90 ms
88,776 KB
testcase_18 AC 79 ms
76,616 KB
testcase_19 AC 79 ms
76,972 KB
testcase_20 AC 109 ms
101,636 KB
testcase_21 AC 90 ms
79,488 KB
testcase_22 AC 98 ms
95,024 KB
testcase_23 AC 94 ms
92,524 KB
testcase_24 AC 86 ms
83,860 KB
testcase_25 AC 113 ms
101,432 KB
testcase_26 AC 114 ms
104,688 KB
testcase_27 AC 112 ms
101,388 KB
testcase_28 AC 124 ms
100,400 KB
testcase_29 AC 124 ms
100,404 KB
testcase_30 AC 128 ms
100,492 KB
testcase_31 AC 123 ms
100,412 KB
testcase_32 AC 124 ms
100,304 KB
testcase_33 AC 125 ms
100,152 KB
testcase_34 AC 120 ms
100,296 KB
testcase_35 AC 123 ms
100,564 KB
testcase_36 AC 118 ms
100,264 KB
testcase_37 AC 120 ms
100,144 KB
testcase_38 AC 70 ms
71,368 KB
testcase_39 AC 70 ms
71,132 KB
testcase_40 AC 71 ms
71,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,x,m = map(int,input().split())
a = list(map(int,input().split()))
now = 0
left = m
for i in range(n)[::-1]:
  ai = a[i]
  for _ in range(now):
    ai //= 2
  while left >= i+1 and ai >= x:
    left -= i+1
    now += 1
    ai //= 2
  if ai >= x: 
    print('No')
    exit()
print('Yes')
0