結果
問題 | No.1736 Princess vs. Dragoness |
ユーザー |
👑 ![]() |
提出日時 | 2021-11-12 21:44:31 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 545 bytes |
コンパイル時間 | 292 ms |
コンパイル使用メモリ | 82,108 KB |
実行使用メモリ | 61,248 KB |
最終ジャッジ日時 | 2024-11-25 17:46:12 |
合計ジャッジ時間 | 2,886 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 WA * 1 |
ソースコード
""""""import sysfrom sys import stdindef solve(K):h = [max(0,i-K) for i in H]a = Ab = Bx = Xy = Yfor i in range(N):mov = min(a , h[i] // x)h[i] -= mov * xa -= movfor i in range(N):if h[i] > 0 and a > 0:a -= 1h[i] = 0if sum(h) <= Y*B:return Trueelse:return FalseN,A,B,X,Y = map(int,stdin.readline().split())H = list(map(int,stdin.readline().split()))if solve(0):print ("Yes")else:print ("No")