結果

問題 No.2015 Stair Counter
ユーザー pitPpitP
提出日時 2022-07-22 21:52:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 185 ms / 2,000 ms
コード長 237 bytes
コンパイル時間 329 ms
コンパイル使用メモリ 86,708 KB
実行使用メモリ 106,864 KB
最終ジャッジ日時 2023-09-17 09:45:04
合計ジャッジ時間 4,986 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,356 KB
testcase_01 AC 140 ms
77,572 KB
testcase_02 AC 160 ms
77,620 KB
testcase_03 AC 164 ms
77,668 KB
testcase_04 AC 141 ms
77,544 KB
testcase_05 AC 134 ms
77,612 KB
testcase_06 AC 185 ms
77,988 KB
testcase_07 AC 185 ms
77,900 KB
testcase_08 AC 182 ms
78,264 KB
testcase_09 AC 90 ms
76,596 KB
testcase_10 AC 89 ms
76,704 KB
testcase_11 AC 90 ms
76,740 KB
testcase_12 AC 87 ms
77,084 KB
testcase_13 AC 88 ms
77,564 KB
testcase_14 AC 89 ms
78,652 KB
testcase_15 AC 98 ms
94,236 KB
testcase_16 AC 111 ms
104,016 KB
testcase_17 AC 100 ms
97,736 KB
testcase_18 AC 103 ms
97,620 KB
testcase_19 AC 114 ms
106,864 KB
testcase_20 AC 108 ms
104,280 KB
testcase_21 AC 139 ms
77,720 KB
testcase_22 AC 159 ms
77,880 KB
testcase_23 AC 172 ms
77,684 KB
testcase_24 AC 182 ms
77,744 KB
testcase_25 AC 145 ms
77,580 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())
for _ in range(t):
    n,m = map(int,input().split())
    a = list(map(int,input().split()))
    boo = True
    for i in range(n-1):
        if a[i] + a[i+1] < m:
            boo = False
    print("Yes" if boo else "No")
0