結果

問題 No.2922 Rose Garden
ユーザー loop0919loop0919
提出日時 2024-10-02 01:16:43
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 284 bytes
コンパイル時間 544 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 107,848 KB
最終ジャッジ日時 2024-10-02 01:16:50
合計ジャッジ時間 6,210 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
86,144 KB
testcase_01 AC 62 ms
76,160 KB
testcase_02 AC 71 ms
85,376 KB
testcase_03 AC 97 ms
107,648 KB
testcase_04 AC 74 ms
86,204 KB
testcase_05 AC 73 ms
82,816 KB
testcase_06 AC 62 ms
73,984 KB
testcase_07 AC 87 ms
97,408 KB
testcase_08 AC 55 ms
66,944 KB
testcase_09 AC 92 ms
101,888 KB
testcase_10 AC 58 ms
71,680 KB
testcase_11 AC 56 ms
66,304 KB
testcase_12 AC 74 ms
86,016 KB
testcase_13 AC 82 ms
93,440 KB
testcase_14 AC 51 ms
65,152 KB
testcase_15 AC 72 ms
83,456 KB
testcase_16 AC 82 ms
92,032 KB
testcase_17 WA -
testcase_18 AC 51 ms
61,824 KB
testcase_19 AC 68 ms
78,336 KB
testcase_20 AC 77 ms
89,088 KB
testcase_21 AC 94 ms
101,760 KB
testcase_22 AC 70 ms
82,944 KB
testcase_23 AC 92 ms
97,664 KB
testcase_24 AC 54 ms
65,920 KB
testcase_25 AC 63 ms
80,512 KB
testcase_26 AC 73 ms
90,112 KB
testcase_27 AC 79 ms
93,824 KB
testcase_28 AC 70 ms
90,492 KB
testcase_29 AC 66 ms
86,656 KB
testcase_30 AC 46 ms
61,092 KB
testcase_31 AC 40 ms
59,392 KB
testcase_32 AC 41 ms
59,520 KB
testcase_33 AC 39 ms
58,532 KB
testcase_34 AC 40 ms
61,184 KB
testcase_35 AC 40 ms
59,264 KB
testcase_36 AC 41 ms
61,824 KB
testcase_37 AC 43 ms
63,104 KB
testcase_38 AC 40 ms
60,288 KB
testcase_39 AC 46 ms
61,568 KB
testcase_40 AC 66 ms
88,832 KB
testcase_41 AC 63 ms
72,320 KB
testcase_42 AC 87 ms
107,848 KB
testcase_43 AC 58 ms
78,592 KB
testcase_44 AC 80 ms
102,748 KB
testcase_45 AC 46 ms
67,072 KB
testcase_46 AC 86 ms
107,520 KB
testcase_47 AC 67 ms
89,984 KB
testcase_48 AC 48 ms
66,432 KB
testcase_49 AC 77 ms
99,072 KB
testcase_50 AC 36 ms
51,456 KB
testcase_51 AC 36 ms
51,968 KB
testcase_52 AC 35 ms
51,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, S, B = map(int, input().split())
H = list(map(int, input().split()))

now_height = H[0]

for i in range(1, N):
    if H[i] <= now_height + S:
        continue
    elif H[i] <= now_height + B * S:
        now_height = H[i]
    else:
        print("No")
        exit()

print("Yes")
0