結果
| 問題 | No.2922 Rose Garden |
| コンテスト | |
| ユーザー |
Cecil
|
| 提出日時 | 2024-10-13 22:43:45 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 77 ms / 3,000 ms |
| + 432µs | |
| コード長 | 342 bytes |
| 記録 | |
| コンパイル時間 | 96 ms |
| コンパイル使用メモリ | 64,276 KB |
| 実行使用メモリ | 87,168 KB |
| 最終ジャッジ日時 | 2026-11-02 02:01:08 |
| 合計ジャッジ時間 | 6,270 ms |
|
ジャッジサーバーID (参考情報) |
judge7_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 53 |
ソースコード
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