結果

問題 No.1736 Princess vs. Dragoness
ユーザー 👑 rin204rin204
提出日時 2021-12-12 23:07:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 276 bytes
コンパイル時間 864 ms
コンパイル使用メモリ 87,100 KB
実行使用メモリ 76,532 KB
最終ジャッジ日時 2023-09-28 17:05:25
合計ジャッジ時間 6,030 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,180 KB
testcase_01 AC 74 ms
70,920 KB
testcase_02 AC 76 ms
71,340 KB
testcase_03 AC 76 ms
71,280 KB
testcase_04 AC 80 ms
76,472 KB
testcase_05 AC 75 ms
71,188 KB
testcase_06 AC 83 ms
76,420 KB
testcase_07 AC 83 ms
76,456 KB
testcase_08 AC 85 ms
76,328 KB
testcase_09 AC 84 ms
76,356 KB
testcase_10 AC 75 ms
71,172 KB
testcase_11 AC 85 ms
76,492 KB
testcase_12 AC 83 ms
76,344 KB
testcase_13 AC 83 ms
76,420 KB
testcase_14 AC 81 ms
76,280 KB
testcase_15 AC 82 ms
76,164 KB
testcase_16 AC 77 ms
70,964 KB
testcase_17 AC 83 ms
76,532 KB
testcase_18 AC 84 ms
76,136 KB
testcase_19 AC 83 ms
76,472 KB
testcase_20 AC 74 ms
71,272 KB
testcase_21 AC 80 ms
76,216 KB
testcase_22 AC 81 ms
76,460 KB
testcase_23 AC 80 ms
76,504 KB
testcase_24 AC 76 ms
71,420 KB
testcase_25 AC 79 ms
71,420 KB
testcase_26 AC 85 ms
76,480 KB
testcase_27 AC 83 ms
76,504 KB
testcase_28 AC 81 ms
76,320 KB
testcase_29 AC 81 ms
76,296 KB
testcase_30 AC 81 ms
76,464 KB
testcase_31 AC 79 ms
71,340 KB
testcase_32 AC 83 ms
76,344 KB
testcase_33 AC 75 ms
71,128 KB
testcase_34 AC 75 ms
70,916 KB
testcase_35 AC 77 ms
71,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, a, b, x, y = map(int, input().split())
H = list(map(int, input().split()))
for i, h in enumerate(H):
    z = h // x
    c = min(a, z)
    a -= c
    H[i] -= c * x

H.sort()
while H and a > 0:
    H.pop()
    a -= 1
if sum(H) <= b * y:
    print("Yes")
else:
    print("No")
0