結果
| 問題 |
No.2922 Rose Garden
|
| コンテスト | |
| ユーザー |
splash9494
|
| 提出日時 | 2025-04-29 12:03:04 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 270 bytes |
| コンパイル時間 | 843 ms |
| コンパイル使用メモリ | 82,044 KB |
| 実行使用メモリ | 98,804 KB |
| 最終ジャッジ日時 | 2025-04-29 12:03:11 |
| 合計ジャッジ時間 | 6,398 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 WA * 25 |
ソースコード
# https://yukicoder.me/problems/no/2922
N, S, B = list(map(int, input().split(' ')))
H = list(map(int, input().split(' ')))
mh = H[0]
for i in range(N-1):
h1, h2 = max(mh, H[i]), H[i+1]
if not (h1 + S * B) >= h2:
print('No')
exit()
print('Yes')
splash9494