結果

問題 No.2015 Stair Counter
ユーザー ikomaikoma
提出日時 2022-07-22 22:32:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 266 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 87,076 KB
実行使用メモリ 105,784 KB
最終ジャッジ日時 2023-09-17 11:00:28
合計ジャッジ時間 4,376 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,336 KB
testcase_01 AC 112 ms
77,640 KB
testcase_02 AC 120 ms
77,724 KB
testcase_03 AC 122 ms
77,628 KB
testcase_04 AC 106 ms
77,384 KB
testcase_05 AC 105 ms
77,268 KB
testcase_06 AC 121 ms
77,716 KB
testcase_07 AC 128 ms
77,940 KB
testcase_08 AC 123 ms
77,800 KB
testcase_09 AC 86 ms
76,720 KB
testcase_10 AC 88 ms
76,736 KB
testcase_11 AC 88 ms
76,784 KB
testcase_12 AC 88 ms
77,468 KB
testcase_13 AC 88 ms
77,940 KB
testcase_14 AC 87 ms
78,016 KB
testcase_15 AC 97 ms
93,672 KB
testcase_16 AC 108 ms
102,756 KB
testcase_17 AC 99 ms
97,792 KB
testcase_18 AC 102 ms
96,600 KB
testcase_19 AC 112 ms
105,784 KB
testcase_20 AC 106 ms
103,908 KB
testcase_21 AC 108 ms
77,416 KB
testcase_22 AC 113 ms
77,612 KB
testcase_23 AC 122 ms
77,776 KB
testcase_24 AC 112 ms
77,512 KB
testcase_25 AC 112 ms
77,580 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

T=int(input())
for _ in range(T):
    N,M=map(int,input().split())
    A=list(map(int,input().split()))
    for i in range(N-1):
        if A[i]+A[i+1]<M:
            print("No")
            break
    else:
        print("Yes")
0