結果

問題 No.2922 Rose Garden
ユーザー hato336hato336
提出日時 2024-10-12 14:48:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 499 bytes
コンパイル時間 249 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 123,008 KB
最終ジャッジ日時 2024-10-12 14:48:29
合計ジャッジ時間 11,589 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 172 ms
107,008 KB
testcase_01 AC 163 ms
99,532 KB
testcase_02 AC 171 ms
106,624 KB
testcase_03 AC 189 ms
123,008 KB
testcase_04 AC 182 ms
106,880 KB
testcase_05 AC 180 ms
104,704 KB
testcase_06 AC 162 ms
98,432 KB
testcase_07 WA -
testcase_08 AC 153 ms
92,956 KB
testcase_09 AC 186 ms
118,656 KB
testcase_10 AC 169 ms
97,024 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 197 ms
112,512 KB
testcase_14 WA -
testcase_15 AC 182 ms
104,960 KB
testcase_16 AC 193 ms
112,128 KB
testcase_17 AC 198 ms
119,168 KB
testcase_18 AC 161 ms
89,984 KB
testcase_19 AC 176 ms
101,120 KB
testcase_20 AC 184 ms
109,184 KB
testcase_21 AC 198 ms
119,040 KB
testcase_22 AC 181 ms
104,576 KB
testcase_23 AC 194 ms
115,840 KB
testcase_24 AC 168 ms
91,520 KB
testcase_25 AC 176 ms
102,656 KB
testcase_26 AC 186 ms
109,568 KB
testcase_27 AC 192 ms
112,384 KB
testcase_28 AC 189 ms
109,696 KB
testcase_29 AC 184 ms
107,136 KB
testcase_30 AC 164 ms
89,728 KB
testcase_31 AC 157 ms
89,984 KB
testcase_32 AC 163 ms
90,240 KB
testcase_33 AC 158 ms
90,112 KB
testcase_34 AC 150 ms
89,720 KB
testcase_35 AC 143 ms
89,720 KB
testcase_36 AC 146 ms
90,060 KB
testcase_37 AC 157 ms
90,240 KB
testcase_38 AC 159 ms
90,240 KB
testcase_39 AC 164 ms
89,728 KB
testcase_40 AC 183 ms
108,928 KB
testcase_41 AC 167 ms
97,280 KB
testcase_42 AC 201 ms
122,880 KB
testcase_43 AC 167 ms
101,116 KB
testcase_44 AC 194 ms
119,404 KB
testcase_45 AC 155 ms
92,996 KB
testcase_46 AC 195 ms
122,856 KB
testcase_47 AC 178 ms
109,424 KB
testcase_48 AC 152 ms
92,544 KB
testcase_49 AC 190 ms
115,584 KB
testcase_50 AC 138 ms
85,652 KB
testcase_51 AC 141 ms
85,632 KB
testcase_52 AC 143 ms
85,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#sys.set_int_max_str_digits(0)
#input = sys.stdin.readline
#n = int(input())
#alist = list(map(int,input().split()))
#alist = []
n,s,b = map(int,input().split())
h = list(map(int,input().split()))
dp = [0 for j in range(n)]
now = h[0] + s*b
dp[0]=1
for i in range(1,n):
    if now >= h[i]:
        now = max(now,h[i]+s*b)
        dp[i] = 1
print('Yes' if dp[-1] else 'No')
0