結果

問題 No.1736 Princess vs. Dragoness
ユーザー a aa a
提出日時 2022-10-07 16:15:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 195 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 8,692 KB
最終ジャッジ日時 2023-09-02 16:39:01
合計ジャッジ時間 3,723 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,984 KB
testcase_01 AC 16 ms
7,880 KB
testcase_02 AC 16 ms
8,004 KB
testcase_03 WA -
testcase_04 AC 55 ms
8,080 KB
testcase_05 AC 19 ms
7,900 KB
testcase_06 AC 65 ms
7,940 KB
testcase_07 AC 203 ms
8,616 KB
testcase_08 AC 82 ms
7,936 KB
testcase_09 AC 156 ms
8,500 KB
testcase_10 AC 16 ms
7,976 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 70 ms
8,568 KB
testcase_14 WA -
testcase_15 AC 22 ms
7,868 KB
testcase_16 AC 33 ms
8,012 KB
testcase_17 WA -
testcase_18 AC 32 ms
8,460 KB
testcase_19 AC 34 ms
7,940 KB
testcase_20 AC 20 ms
8,008 KB
testcase_21 WA -
testcase_22 AC 146 ms
8,412 KB
testcase_23 AC 28 ms
8,548 KB
testcase_24 AC 16 ms
8,020 KB
testcase_25 AC 52 ms
8,068 KB
testcase_26 AC 85 ms
8,456 KB
testcase_27 AC 75 ms
8,404 KB
testcase_28 AC 29 ms
8,560 KB
testcase_29 AC 18 ms
8,576 KB
testcase_30 AC 48 ms
8,544 KB
testcase_31 AC 75 ms
8,016 KB
testcase_32 AC 124 ms
7,944 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 17 ms
8,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
n,a,b,x,y=list(map(int,input().split()))
h=list(map(int,input().split ()))
for k in range(a):
    mi=h.index(max(h))
    h[mi]-=x
if sum(h)>b*y:
    print("No")
else:
    print("Yes")
0