結果
問題 |
No.1736 Princess vs. Dragoness
|
ユーザー |
|
提出日時 | 2021-11-12 23:57:24 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 283 bytes |
コンパイル時間 | 137 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 21,504 KB |
最終ジャッジ日時 | 2024-11-25 23:02:31 |
合計ジャッジ時間 | 35,199 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 TLE * 7 |
ソースコード
n, a, b, x, y = map(int, input().split()) h = list(map(int, input().split())) for i in range(a): h[h.index(max(h))] -= x for i in range(b): now = y for j in range(n): if h[j] < 0: continue tmp = min(h[j], now) now -= tmp h[j] -= tmp print("Yes" if max(h) <= 0 else "No")