結果

問題 No.1736 Princess vs. Dragoness
ユーザー sanao10000sanao10000
提出日時 2021-11-12 22:50:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 392 bytes
コンパイル時間 457 ms
コンパイル使用メモリ 86,976 KB
実行使用メモリ 76,980 KB
最終ジャッジ日時 2023-08-17 03:11:44
合計ジャッジ時間 5,140 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,296 KB
testcase_01 AC 68 ms
71,412 KB
testcase_02 AC 68 ms
71,412 KB
testcase_03 AC 79 ms
76,764 KB
testcase_04 AC 84 ms
76,908 KB
testcase_05 AC 75 ms
76,760 KB
testcase_06 AC 105 ms
76,876 KB
testcase_07 AC 103 ms
76,980 KB
testcase_08 AC 90 ms
76,556 KB
testcase_09 AC 97 ms
76,896 KB
testcase_10 AC 75 ms
76,572 KB
testcase_11 AC 132 ms
76,800 KB
testcase_12 AC 91 ms
76,820 KB
testcase_13 AC 105 ms
76,852 KB
testcase_14 AC 103 ms
76,776 KB
testcase_15 AC 82 ms
76,824 KB
testcase_16 AC 87 ms
76,696 KB
testcase_17 AC 101 ms
76,532 KB
testcase_18 AC 109 ms
76,524 KB
testcase_19 AC 111 ms
76,752 KB
testcase_20 AC 81 ms
76,376 KB
testcase_21 AC 88 ms
76,464 KB
testcase_22 AC 124 ms
76,676 KB
testcase_23 AC 87 ms
76,580 KB
testcase_24 AC 78 ms
76,396 KB
testcase_25 AC 77 ms
76,080 KB
testcase_26 AC 92 ms
76,616 KB
testcase_27 AC 85 ms
76,712 KB
testcase_28 AC 87 ms
76,580 KB
testcase_29 AC 85 ms
76,744 KB
testcase_30 AC 115 ms
76,588 KB
testcase_31 AC 91 ms
76,408 KB
testcase_32 AC 102 ms
76,624 KB
testcase_33 AC 73 ms
71,404 KB
testcase_34 AC 69 ms
71,384 KB
testcase_35 AC 69 ms
71,148 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, a, b,x,y = map(int, input().split())

hs =list(map(int, input().split()))

for i in range(a):
    maxi1=max(hs)
    maxin=hs.index(maxi1)
    hs[maxin]-=x




for b in range(b):
    p=y
    for i in range(len(hs)):
        if(hs[i]<=0):continue
        D=min(p,hs[i])
        hs[i]-=D
        p-=D

ll=len(list((filter(lambda x: x>0, hs))))
if ll==0:
    print("Yes")
else:
    print("No")
0