結果

問題 No.1736 Princess vs. Dragoness
ユーザー pluto77pluto77
提出日時 2022-02-07 16:04:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 311 ms / 2,000 ms
コード長 235 bytes
コンパイル時間 166 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 8,628 KB
最終ジャッジ日時 2023-09-03 20:09:38
合計ジャッジ時間 5,112 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,952 KB
testcase_01 AC 14 ms
7,776 KB
testcase_02 AC 14 ms
7,784 KB
testcase_03 AC 22 ms
7,784 KB
testcase_04 AC 66 ms
8,188 KB
testcase_05 AC 19 ms
7,832 KB
testcase_06 AC 89 ms
8,332 KB
testcase_07 AC 252 ms
8,224 KB
testcase_08 AC 102 ms
8,216 KB
testcase_09 AC 179 ms
8,220 KB
testcase_10 AC 14 ms
7,804 KB
testcase_11 AC 311 ms
8,628 KB
testcase_12 AC 55 ms
8,212 KB
testcase_13 AC 90 ms
8,228 KB
testcase_14 AC 77 ms
8,212 KB
testcase_15 AC 22 ms
7,780 KB
testcase_16 AC 38 ms
7,792 KB
testcase_17 AC 81 ms
8,316 KB
testcase_18 AC 35 ms
8,248 KB
testcase_19 AC 37 ms
8,332 KB
testcase_20 AC 18 ms
7,940 KB
testcase_21 AC 114 ms
8,352 KB
testcase_22 AC 171 ms
8,332 KB
testcase_23 AC 33 ms
8,248 KB
testcase_24 AC 13 ms
7,832 KB
testcase_25 AC 64 ms
7,948 KB
testcase_26 AC 130 ms
8,224 KB
testcase_27 AC 116 ms
8,216 KB
testcase_28 AC 31 ms
8,396 KB
testcase_29 AC 16 ms
8,392 KB
testcase_30 AC 53 ms
8,212 KB
testcase_31 AC 94 ms
7,828 KB
testcase_32 AC 157 ms
8,216 KB
testcase_33 AC 14 ms
7,868 KB
testcase_34 AC 13 ms
7,772 KB
testcase_35 AC 13 ms
7,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki1736
n,a,b,x,y=map(int,input().split())
h=list(map(int,input().split()))
h.sort(reverse=True)
for i in range(a):
 if max(h)<x:
  h[h.index(max(h))]=0
 else:
  h[h.index(max(h))]-=x
if sum(h)<=y*b:
 print('Yes')
else:
 print('No')
0