結果
| 問題 | No.2922 Rose Garden |
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2024-10-12 14:47:24 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 173 bytes |
| 記録 | |
| コンパイル時間 | 233 ms |
| コンパイル使用メモリ | 82,376 KB |
| 実行使用メモリ | 107,564 KB |
| 最終ジャッジ日時 | 2024-10-12 14:47:36 |
| 合計ジャッジ時間 | 5,112 ms |
|
ジャッジサーバーID (参考情報) |
judge / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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