結果
問題 |
No.2922 Rose Garden
|
ユーザー |
![]() |
提出日時 | 2024-10-12 14:56:05 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 127 ms / 3,000 ms |
コード長 | 925 bytes |
コンパイル時間 | 267 ms |
コンパイル使用メモリ | 81,908 KB |
実行使用メモリ | 110,392 KB |
最終ジャッジ日時 | 2024-10-12 14:56:12 |
合計ジャッジ時間 | 6,011 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 50 |
ソースコード
from collections import defaultdict, deque, Counter # from functools import cache # import copy from itertools import combinations, permutations, product, accumulate, groupby, chain # from more_itertools import distinct_permutations from heapq import heapify, heappop, heappush import math import bisect # from pprint import pprint from random import randint, shuffle, randrange # from sortedcontainers import SortedSet, SortedList, SortedDict import sys # sys.setrecursionlimit(2000000) input = lambda: sys.stdin.readline().rstrip('\n') inf = float('inf') mod1 = 10**9+7 mod2 = 998244353 def ceil_div(x, y): return -(-x//y) ################################################# N, S, B = map(int, input().split()) H = list(map(int, input().split())) HH = [] for h in H: if not HH or HH[-1] < h: HH.append(h) for i in range(1, len(HH)): if HH[i-1]+B*S < HH[i]: print("No") exit() print("Yes")