結果

問題 No.1736 Princess vs. Dragoness
ユーザー HydruHydru
提出日時 2021-11-12 21:36:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 370 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 82,564 KB
実行使用メモリ 62,560 KB
最終ジャッジ日時 2024-05-04 07:39:18
合計ジャッジ時間 3,010 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
52,192 KB
testcase_01 AC 43 ms
52,388 KB
testcase_02 AC 40 ms
52,084 KB
testcase_03 AC 39 ms
52,732 KB
testcase_04 AC 44 ms
61,172 KB
testcase_05 AC 38 ms
52,016 KB
testcase_06 AC 42 ms
59,016 KB
testcase_07 AC 46 ms
60,604 KB
testcase_08 AC 45 ms
60,248 KB
testcase_09 AC 46 ms
60,280 KB
testcase_10 AC 38 ms
52,156 KB
testcase_11 AC 46 ms
62,560 KB
testcase_12 AC 45 ms
60,288 KB
testcase_13 AC 45 ms
58,800 KB
testcase_14 AC 44 ms
60,080 KB
testcase_15 AC 41 ms
59,020 KB
testcase_16 AC 38 ms
53,356 KB
testcase_17 AC 45 ms
61,348 KB
testcase_18 AC 41 ms
59,492 KB
testcase_19 AC 43 ms
59,916 KB
testcase_20 AC 38 ms
53,208 KB
testcase_21 AC 45 ms
60,844 KB
testcase_22 AC 47 ms
61,416 KB
testcase_23 AC 43 ms
58,640 KB
testcase_24 AC 38 ms
52,028 KB
testcase_25 AC 40 ms
52,772 KB
testcase_26 AC 43 ms
59,964 KB
testcase_27 AC 42 ms
58,524 KB
testcase_28 AC 43 ms
59,620 KB
testcase_29 AC 41 ms
59,264 KB
testcase_30 AC 42 ms
59,508 KB
testcase_31 AC 39 ms
53,096 KB
testcase_32 AC 43 ms
59,652 KB
testcase_33 AC 38 ms
52,664 KB
testcase_34 AC 39 ms
53,228 KB
testcase_35 AC 38 ms
51,908 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