結果

問題 No.2056 非力なレッド
ユーザー mrngmrng
提出日時 2022-08-27 14:20:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 99 ms / 2,000 ms
コード長 285 bytes
コンパイル時間 404 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 102,160 KB
最終ジャッジ日時 2024-04-22 12:46:33
合計ジャッジ時間 4,770 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,108 KB
testcase_01 AC 34 ms
53,328 KB
testcase_02 AC 36 ms
52,532 KB
testcase_03 AC 34 ms
51,748 KB
testcase_04 AC 34 ms
52,328 KB
testcase_05 AC 36 ms
52,320 KB
testcase_06 AC 34 ms
52,488 KB
testcase_07 AC 34 ms
52,096 KB
testcase_08 AC 33 ms
52,328 KB
testcase_09 AC 39 ms
52,340 KB
testcase_10 AC 35 ms
52,408 KB
testcase_11 AC 35 ms
52,076 KB
testcase_12 AC 34 ms
52,136 KB
testcase_13 AC 68 ms
90,480 KB
testcase_14 AC 68 ms
88,448 KB
testcase_15 AC 70 ms
90,556 KB
testcase_16 AC 46 ms
61,952 KB
testcase_17 AC 60 ms
78,720 KB
testcase_18 AC 45 ms
61,056 KB
testcase_19 AC 50 ms
64,896 KB
testcase_20 AC 80 ms
97,536 KB
testcase_21 AC 47 ms
68,100 KB
testcase_22 AC 69 ms
88,192 KB
testcase_23 AC 62 ms
84,552 KB
testcase_24 AC 55 ms
73,088 KB
testcase_25 AC 80 ms
97,920 KB
testcase_26 AC 82 ms
102,160 KB
testcase_27 AC 81 ms
98,352 KB
testcase_28 AC 96 ms
102,084 KB
testcase_29 AC 96 ms
101,920 KB
testcase_30 AC 96 ms
101,924 KB
testcase_31 AC 94 ms
102,096 KB
testcase_32 AC 95 ms
102,056 KB
testcase_33 AC 99 ms
102,028 KB
testcase_34 AC 92 ms
101,788 KB
testcase_35 AC 94 ms
102,060 KB
testcase_36 AC 94 ms
101,848 KB
testcase_37 AC 92 ms
102,000 KB
testcase_38 AC 37 ms
53,364 KB
testcase_39 AC 35 ms
52,264 KB
testcase_40 AC 35 ms
52,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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