結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,856 KB
testcase_01 AC 14 ms
7,712 KB
testcase_02 AC 13 ms
7,772 KB
testcase_03 WA -
testcase_04 AC 14 ms
8,204 KB
testcase_05 AC 12 ms
7,820 KB
testcase_06 AC 13 ms
8,308 KB
testcase_07 AC 16 ms
8,200 KB
testcase_08 AC 14 ms
8,328 KB
testcase_09 AC 15 ms
8,184 KB
testcase_10 AC 12 ms
7,868 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 14 ms
8,252 KB
testcase_14 WA -
testcase_15 AC 13 ms
7,772 KB
testcase_16 AC 13 ms
7,748 KB
testcase_17 WA -
testcase_18 AC 14 ms
8,188 KB
testcase_19 AC 15 ms
8,244 KB
testcase_20 AC 13 ms
7,828 KB
testcase_21 WA -
testcase_22 AC 16 ms
8,176 KB
testcase_23 AC 14 ms
8,300 KB
testcase_24 AC 13 ms
7,860 KB
testcase_25 AC 14 ms
7,796 KB
testcase_26 AC 14 ms
8,312 KB
testcase_27 AC 13 ms
8,256 KB
testcase_28 AC 13 ms
8,252 KB
testcase_29 AC 14 ms
8,188 KB
testcase_30 AC 14 ms
8,256 KB
testcase_31 AC 14 ms
7,800 KB
testcase_32 AC 14 ms
8,188 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 12 ms
7,748 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
if sum(H) <= B*Y + res*X:
    print('Yes')
else:
    print('No')
    
    
0