結果

問題 No.2056 非力なレッド
ユーザー taiga0629kyoprotaiga0629kyopro
提出日時 2022-08-22 05:25:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 374 bytes
コンパイル時間 636 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 104,232 KB
最終ジャッジ日時 2024-04-18 13:17:55
合計ジャッジ時間 6,608 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
52,224 KB
testcase_01 AC 44 ms
52,096 KB
testcase_02 AC 44 ms
51,968 KB
testcase_03 AC 42 ms
52,160 KB
testcase_04 AC 43 ms
51,968 KB
testcase_05 AC 44 ms
51,968 KB
testcase_06 AC 42 ms
52,224 KB
testcase_07 AC 44 ms
51,968 KB
testcase_08 AC 45 ms
51,968 KB
testcase_09 AC 44 ms
51,840 KB
testcase_10 AC 45 ms
52,224 KB
testcase_11 AC 44 ms
51,968 KB
testcase_12 AC 43 ms
51,968 KB
testcase_13 WA -
testcase_14 AC 90 ms
91,520 KB
testcase_15 WA -
testcase_16 AC 47 ms
62,468 KB
testcase_17 AC 66 ms
81,588 KB
testcase_18 AC 42 ms
60,544 KB
testcase_19 AC 42 ms
63,616 KB
testcase_20 WA -
testcase_21 AC 58 ms
67,164 KB
testcase_22 AC 85 ms
91,264 KB
testcase_23 AC 74 ms
86,952 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 112 ms
101,620 KB
testcase_29 AC 131 ms
101,956 KB
testcase_30 AC 122 ms
101,620 KB
testcase_31 AC 125 ms
101,396 KB
testcase_32 AC 127 ms
102,340 KB
testcase_33 WA -
testcase_34 AC 117 ms
102,172 KB
testcase_35 WA -
testcase_36 AC 130 ms
102,000 KB
testcase_37 AC 139 ms
101,988 KB
testcase_38 AC 36 ms
53,000 KB
testcase_39 AC 43 ms
51,812 KB
testcase_40 AC 42 ms
52,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def fake1(n,x,m,A):
    a=A[:]
    cnt=0
    while 1:
        if max(a)<x:break
        ma=max(a)
        ind=10**10
        for i in range(n):
            if a[i]==ma:ind=i
        for i in range(ind+1):
            a[i]//=2
            cnt+=1
    if cnt<=m:return "Yes"
    return "No"
n,x,m=map(int,input().split())
a=list(map(int,input().split()))
print(fake1(n,x,m,a))
0