結果

問題 No.2056 非力なレッド
ユーザー shobonvipshobonvip
提出日時 2022-08-26 21:38:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 109 ms / 2,000 ms
コード長 339 bytes
コンパイル時間 201 ms
コンパイル使用メモリ 82,504 KB
実行使用メモリ 104,296 KB
最終ジャッジ日時 2024-04-21 23:37:56
合計ジャッジ時間 4,454 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
52,832 KB
testcase_01 AC 37 ms
51,880 KB
testcase_02 AC 41 ms
52,276 KB
testcase_03 AC 37 ms
53,372 KB
testcase_04 AC 37 ms
52,404 KB
testcase_05 AC 37 ms
53,612 KB
testcase_06 AC 36 ms
52,136 KB
testcase_07 AC 38 ms
52,356 KB
testcase_08 AC 38 ms
52,208 KB
testcase_09 AC 37 ms
52,600 KB
testcase_10 AC 37 ms
52,032 KB
testcase_11 AC 37 ms
52,428 KB
testcase_12 AC 38 ms
52,756 KB
testcase_13 AC 74 ms
91,200 KB
testcase_14 AC 77 ms
93,892 KB
testcase_15 AC 73 ms
91,080 KB
testcase_16 AC 45 ms
63,644 KB
testcase_17 AC 67 ms
83,604 KB
testcase_18 AC 46 ms
62,352 KB
testcase_19 AC 49 ms
65,832 KB
testcase_20 AC 79 ms
97,944 KB
testcase_21 AC 52 ms
68,700 KB
testcase_22 AC 80 ms
92,084 KB
testcase_23 AC 76 ms
88,212 KB
testcase_24 AC 56 ms
73,672 KB
testcase_25 AC 81 ms
98,972 KB
testcase_26 AC 90 ms
104,296 KB
testcase_27 AC 82 ms
99,260 KB
testcase_28 AC 100 ms
101,724 KB
testcase_29 AC 103 ms
101,920 KB
testcase_30 AC 106 ms
101,992 KB
testcase_31 AC 100 ms
102,088 KB
testcase_32 AC 99 ms
101,776 KB
testcase_33 AC 104 ms
101,864 KB
testcase_34 AC 105 ms
101,536 KB
testcase_35 AC 101 ms
101,436 KB
testcase_36 AC 102 ms
102,020 KB
testcase_37 AC 109 ms
101,528 KB
testcase_38 AC 38 ms
52,432 KB
testcase_39 AC 36 ms
52,340 KB
testcase_40 AC 39 ms
53,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,x,m = map(int,input().split())
a = list(map(int,input().split()))

# 操作回数は高々 N log N
# シミュレーションすればok

f = 0

while True:
	last = -1
	for i in range(n):
		if a[i] >= x:
			last = i
	if last == -1:
		break
	for i in range(last+1):
		a[i] //= 2
	f += last+1

if f <= m:
	print("Yes")
else:
	print("No")

0