結果
| 問題 | No.2922 Rose Garden |
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2024-10-12 14:47:24 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 173 bytes |
| 記録 | |
| コンパイル時間 | 199 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 108,160 KB |
| 最終ジャッジ日時 | 2026-04-29 15:26:50 |
| 合計ジャッジ時間 | 4,306 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 35 WA * 15 |
ソースコード
n,S,B=map(int,input().split())
h=list(map(int,input().split()))
for i in range(n-1):
s=S
s-=(max(h[i+1]-h[i],0)+B-1)//B
if S<0:
print("No")
exit()
print("Yes")
sasa8uyauya