結果

問題 No.2015 Stair Counter
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2022-07-22 21:24:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 303 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 86,880 KB
実行使用メモリ 105,600 KB
最終ジャッジ日時 2023-09-17 08:43:40
合計ジャッジ時間 4,315 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,196 KB
testcase_01 AC 104 ms
77,380 KB
testcase_02 AC 110 ms
77,424 KB
testcase_03 AC 109 ms
77,308 KB
testcase_04 AC 103 ms
77,012 KB
testcase_05 AC 100 ms
77,100 KB
testcase_06 AC 114 ms
77,476 KB
testcase_07 AC 118 ms
77,220 KB
testcase_08 AC 117 ms
77,376 KB
testcase_09 AC 92 ms
76,400 KB
testcase_10 AC 94 ms
76,484 KB
testcase_11 AC 94 ms
76,712 KB
testcase_12 AC 91 ms
77,052 KB
testcase_13 AC 91 ms
77,872 KB
testcase_14 AC 92 ms
77,904 KB
testcase_15 AC 98 ms
93,504 KB
testcase_16 AC 112 ms
102,544 KB
testcase_17 AC 103 ms
97,360 KB
testcase_18 AC 104 ms
96,688 KB
testcase_19 AC 114 ms
105,600 KB
testcase_20 AC 110 ms
103,788 KB
testcase_21 AC 102 ms
77,084 KB
testcase_22 AC 110 ms
77,272 KB
testcase_23 AC 115 ms
77,412 KB
testcase_24 AC 104 ms
77,348 KB
testcase_25 AC 103 ms
77,252 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

"""

"""

import sys
from sys import stdin

TT = int(stdin.readline())

for loop in range(TT):

    N,M = map(int,stdin.readline().split())

    A = list(map(int,stdin.readline().split()))

    ans = "Yes"

    for i in range(N-1):
        if A[i] + A[i+1] < M:
            ans = "No"

    print (ans)
0