結果

問題 No.2015 Stair Counter
ユーザー SidewaysOwlSidewaysOwl
提出日時 2022-07-30 16:40:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 209 ms / 2,000 ms
コード長 203 bytes
コンパイル時間 586 ms
コンパイル使用メモリ 87,044 KB
実行使用メモリ 107,280 KB
最終ジャッジ日時 2023-09-27 18:58:29
合計ジャッジ時間 5,871 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
71,248 KB
testcase_01 AC 209 ms
77,380 KB
testcase_02 AC 133 ms
77,800 KB
testcase_03 AC 146 ms
78,696 KB
testcase_04 AC 111 ms
77,508 KB
testcase_05 AC 104 ms
77,700 KB
testcase_06 AC 138 ms
77,888 KB
testcase_07 AC 157 ms
78,640 KB
testcase_08 AC 165 ms
78,568 KB
testcase_09 AC 77 ms
76,584 KB
testcase_10 AC 78 ms
76,772 KB
testcase_11 AC 80 ms
76,756 KB
testcase_12 AC 78 ms
77,024 KB
testcase_13 AC 83 ms
77,640 KB
testcase_14 AC 83 ms
78,700 KB
testcase_15 AC 85 ms
94,184 KB
testcase_16 AC 99 ms
103,820 KB
testcase_17 AC 88 ms
97,884 KB
testcase_18 AC 100 ms
97,820 KB
testcase_19 AC 100 ms
107,280 KB
testcase_20 AC 93 ms
104,368 KB
testcase_21 AC 111 ms
77,672 KB
testcase_22 AC 139 ms
77,956 KB
testcase_23 AC 139 ms
77,668 KB
testcase_24 AC 111 ms
77,436 KB
testcase_25 AC 121 ms
78,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
    n,m = map(int,input().split())
    a = list(map(int,input().split()))
    ans = "Yes"
    for i in range(1,n-1):
        if (m - a[i-1]) > a[i]:ans = "No"
    print(ans)
0