結果
問題 |
No.2922 Rose Garden
|
ユーザー |
|
提出日時 | 2024-10-12 14:44:44 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 104 ms / 3,000 ms |
コード長 | 339 bytes |
コンパイル時間 | 232 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 109,172 KB |
最終ジャッジ日時 | 2024-10-12 14:44:55 |
合計ジャッジ時間 | 5,707 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 50 |
ソースコード
n,s,b = map(int, input().split()) hlist = [0] + list(map(int, input().split())) stack = [s*b] for i in range(1,n+1): h = hlist[i] while stack: if stack[-1] < h: stack.pop() else: break if stack: stack.append((h+s*b)) else: print("No") exit() print("Yes")