結果

問題 No.2056 非力なレッド
ユーザー flygonflygon
提出日時 2022-09-19 15:50:54
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 275 bytes
コンパイル時間 341 ms
コンパイル使用メモリ 87,100 KB
実行使用メモリ 104,524 KB
最終ジャッジ日時 2023-08-23 18:56:19
合計ジャッジ時間 7,288 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,324 KB
testcase_01 AC 72 ms
71,308 KB
testcase_02 AC 70 ms
71,192 KB
testcase_03 AC 72 ms
71,308 KB
testcase_04 AC 71 ms
71,028 KB
testcase_05 AC 71 ms
71,328 KB
testcase_06 AC 71 ms
71,296 KB
testcase_07 WA -
testcase_08 AC 68 ms
71,096 KB
testcase_09 AC 70 ms
71,332 KB
testcase_10 WA -
testcase_11 AC 70 ms
71,064 KB
testcase_12 AC 69 ms
71,304 KB
testcase_13 AC 107 ms
96,100 KB
testcase_14 WA -
testcase_15 AC 104 ms
96,044 KB
testcase_16 AC 77 ms
76,440 KB
testcase_17 WA -
testcase_18 AC 76 ms
76,424 KB
testcase_19 AC 77 ms
76,664 KB
testcase_20 AC 113 ms
101,524 KB
testcase_21 AC 81 ms
79,304 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 87 ms
83,936 KB
testcase_25 AC 115 ms
101,960 KB
testcase_26 AC 119 ms
104,524 KB
testcase_27 AC 114 ms
101,896 KB
testcase_28 AC 131 ms
100,468 KB
testcase_29 AC 129 ms
100,528 KB
testcase_30 AC 131 ms
100,508 KB
testcase_31 AC 129 ms
100,620 KB
testcase_32 AC 127 ms
100,560 KB
testcase_33 AC 130 ms
100,460 KB
testcase_34 WA -
testcase_35 AC 128 ms
100,548 KB
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 AC 70 ms
71,452 KB
testcase_40 AC 71 ms
71,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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