結果

問題 No.1736 Princess vs. Dragoness
ユーザー HydruHydru
提出日時 2021-11-12 21:34:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 370 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 82,212 KB
実行使用メモリ 62,008 KB
最終ジャッジ日時 2024-05-04 07:35:58
合計ジャッジ時間 2,311 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,084 KB
testcase_01 AC 37 ms
53,712 KB
testcase_02 AC 37 ms
52,592 KB
testcase_03 WA -
testcase_04 AC 39 ms
60,288 KB
testcase_05 AC 36 ms
53,440 KB
testcase_06 AC 38 ms
59,248 KB
testcase_07 AC 35 ms
59,276 KB
testcase_08 AC 35 ms
59,336 KB
testcase_09 AC 37 ms
58,788 KB
testcase_10 AC 33 ms
52,732 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 37 ms
59,688 KB
testcase_14 WA -
testcase_15 AC 35 ms
58,704 KB
testcase_16 AC 34 ms
52,584 KB
testcase_17 WA -
testcase_18 AC 36 ms
58,640 KB
testcase_19 AC 37 ms
60,460 KB
testcase_20 AC 33 ms
52,628 KB
testcase_21 WA -
testcase_22 AC 38 ms
59,492 KB
testcase_23 AC 38 ms
58,476 KB
testcase_24 AC 34 ms
52,072 KB
testcase_25 AC 33 ms
52,900 KB
testcase_26 WA -
testcase_27 AC 38 ms
59,728 KB
testcase_28 AC 36 ms
59,976 KB
testcase_29 AC 37 ms
59,464 KB
testcase_30 AC 38 ms
60,376 KB
testcase_31 AC 35 ms
53,876 KB
testcase_32 AC 38 ms
58,800 KB
testcase_33 WA -
testcase_34 AC 36 ms
52,928 KB
testcase_35 AC 33 ms
52,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,A,B,X,Y=map(int,input().split())
H=list(map(int,input().split()))
for i in range(N):
    if H[i]>=X:
        if A<H[i]//X:
            A-=H[i]//X
            H[i]%=X
        else:
            H[i]-=A*X
            A=0
            break
if A>0:
    H.sort(reverse=True)
    for i in range(min(N,A)):
        H[i]=0
if sum(H)<=B*Y:
    print("Yes")
else:
    print("No")
0