結果

問題 No.2015 Stair Counter
ユーザー 👑 tamatotamato
提出日時 2022-07-22 21:23:50
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 420 bytes
コンパイル時間 659 ms
コンパイル使用メモリ 86,640 KB
実行使用メモリ 105,412 KB
最終ジャッジ日時 2023-09-17 08:42:58
合計ジャッジ時間 4,883 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,240 KB
testcase_01 AC 112 ms
77,168 KB
testcase_02 AC 114 ms
77,384 KB
testcase_03 AC 118 ms
77,232 KB
testcase_04 AC 108 ms
77,464 KB
testcase_05 AC 106 ms
77,288 KB
testcase_06 AC 129 ms
77,872 KB
testcase_07 AC 129 ms
77,396 KB
testcase_08 AC 125 ms
77,308 KB
testcase_09 AC 91 ms
76,128 KB
testcase_10 AC 93 ms
76,228 KB
testcase_11 AC 89 ms
76,512 KB
testcase_12 AC 88 ms
76,832 KB
testcase_13 AC 89 ms
77,708 KB
testcase_14 AC 89 ms
77,380 KB
testcase_15 AC 98 ms
93,212 KB
testcase_16 AC 113 ms
102,448 KB
testcase_17 AC 102 ms
97,368 KB
testcase_18 AC 106 ms
96,256 KB
testcase_19 AC 118 ms
105,412 KB
testcase_20 AC 110 ms
103,620 KB
testcase_21 AC 107 ms
77,404 KB
testcase_22 AC 114 ms
77,380 KB
testcase_23 AC 118 ms
77,440 KB
testcase_24 AC 110 ms
77,224 KB
testcase_25 AC 109 ms
77,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353


def main():
    import sys
    input = sys.stdin.readline

    for _ in range(int(input())):
        N, M = map(int, input().split())
        A = list(map(int, input().split()))

        ok = 1
        for i in range(N - 1):
            if A[i] + A[i - 1] < M:
                ok = 0
        if ok:
            print("Yes")
        else:
            print("No")


if __name__ == '__main__':
    main()
0