結果
問題 | No.2922 Rose Garden |
ユーザー |
|
提出日時 | 2024-09-07 11:48:00 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 207 bytes |
コンパイル時間 | 193 ms |
コンパイル使用メモリ | 81,880 KB |
実行使用メモリ | 107,392 KB |
最終ジャッジ日時 | 2024-09-29 10:35:45 |
合計ジャッジ時間 | 5,554 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 43 WA * 7 |
ソースコード
n,s,b=map(int,input().split())h=list(map(int,input().split()))now=h[0]for i in range(1,n):need=(max(0,h[i]-now)+b-1)//bif need>s:print("No")exit()now+=need*bprint("Yes")