結果
| 問題 |
No.2922 Rose Garden
|
| コンテスト | |
| ユーザー |
Cecil
|
| 提出日時 | 2024-10-13 22:43:45 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 111 ms / 3,000 ms |
| コード長 | 342 bytes |
| コンパイル時間 | 283 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 107,648 KB |
| 最終ジャッジ日時 | 2024-10-13 22:43:52 |
| 合計ジャッジ時間 | 6,066 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 50 |
ソースコード
N,S,B = map(int, input().split())
H = list(map(int,input().split()))
now = H[0]
s = S
for i in range(N-1):
if now < H[i+1]:
while now<H[i+1] and s>0:
s -= 1
now += B
if now<H[i+1]:
print("No")
exit()
now = H[i+1]
s = S
else:
continue
print("Yes")
Cecil