結果

問題 No.1736 Princess vs. Dragoness
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2021-11-21 01:44:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 299 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 10,620 KB
実行使用メモリ 8,512 KB
最終ジャッジ日時 2023-09-03 16:01:25
合計ジャッジ時間 1,801 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,984 KB
testcase_01 AC 15 ms
7,864 KB
testcase_02 AC 16 ms
7,808 KB
testcase_03 AC 15 ms
7,880 KB
testcase_04 AC 17 ms
8,300 KB
testcase_05 AC 14 ms
7,972 KB
testcase_06 AC 15 ms
8,348 KB
testcase_07 AC 18 ms
8,220 KB
testcase_08 AC 16 ms
8,328 KB
testcase_09 AC 16 ms
8,304 KB
testcase_10 AC 13 ms
7,808 KB
testcase_11 AC 18 ms
8,512 KB
testcase_12 AC 15 ms
8,288 KB
testcase_13 AC 15 ms
8,296 KB
testcase_14 AC 17 ms
8,372 KB
testcase_15 AC 14 ms
7,960 KB
testcase_16 AC 13 ms
7,780 KB
testcase_17 AC 16 ms
8,352 KB
testcase_18 AC 15 ms
8,224 KB
testcase_19 AC 15 ms
8,304 KB
testcase_20 AC 14 ms
7,856 KB
testcase_21 AC 16 ms
8,236 KB
testcase_22 AC 16 ms
8,212 KB
testcase_23 AC 14 ms
8,200 KB
testcase_24 AC 13 ms
7,780 KB
testcase_25 AC 14 ms
7,800 KB
testcase_26 AC 14 ms
8,212 KB
testcase_27 AC 15 ms
8,376 KB
testcase_28 AC 14 ms
8,336 KB
testcase_29 AC 14 ms
8,300 KB
testcase_30 AC 16 ms
8,356 KB
testcase_31 AC 15 ms
7,848 KB
testcase_32 AC 13 ms
8,400 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 14 ms
7,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,A,B,X,Y = map(int,input().split())
H = list(map(int,input().split()))
S = 0
res = A
cnt = 0
while res > 0 and cnt < N:
    tmp = H[cnt]
    nums = min(tmp//X,res)
    res -= nums
    H[cnt] -= nums*X
    cnt += 1
H.sort()
if sum(H[:-1-res]) <= B*Y:
    print('Yes')
else:
    print('No')
    
    
0