結果
問題 |
No.2922 Rose Garden
|
ユーザー |
|
提出日時 | 2025-05-02 02:11:09 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 122 ms / 3,000 ms |
コード長 | 312 bytes |
コンパイル時間 | 566 ms |
コンパイル使用メモリ | 82,588 KB |
実行使用メモリ | 114,140 KB |
最終ジャッジ日時 | 2025-05-02 02:11:17 |
合計ジャッジ時間 | 8,180 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 50 |
ソースコード
from itertools import accumulate N,S,B=(int(x) for x in input().split()) H=list(map(int, input().split())) now_H=H[0] max_H=list(set(accumulate(H, lambda x,y: max(x,y)))) for i in range(1,len(max_H)): if max_H[i]-max_H[i-1] <= S*B: continue else: print("No") exit() print("Yes")