結果

問題 No.2015 Stair Counter
ユーザー asumo0729asumo0729
提出日時 2022-07-25 23:31:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 169 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 824 ms
コンパイル使用メモリ 87,120 KB
実行使用メモリ 107,276 KB
最終ジャッジ日時 2023-09-22 10:21:21
合計ジャッジ時間 6,500 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,204 KB
testcase_01 AC 121 ms
77,512 KB
testcase_02 AC 136 ms
77,672 KB
testcase_03 AC 140 ms
77,600 KB
testcase_04 AC 118 ms
77,360 KB
testcase_05 AC 112 ms
77,448 KB
testcase_06 AC 160 ms
77,812 KB
testcase_07 AC 164 ms
77,820 KB
testcase_08 AC 164 ms
77,692 KB
testcase_09 AC 85 ms
76,704 KB
testcase_10 AC 84 ms
76,720 KB
testcase_11 AC 85 ms
76,780 KB
testcase_12 AC 83 ms
77,364 KB
testcase_13 AC 86 ms
77,648 KB
testcase_14 AC 87 ms
78,712 KB
testcase_15 AC 93 ms
94,344 KB
testcase_16 AC 107 ms
104,080 KB
testcase_17 AC 96 ms
98,136 KB
testcase_18 AC 100 ms
97,864 KB
testcase_19 AC 108 ms
107,276 KB
testcase_20 AC 103 ms
104,376 KB
testcase_21 AC 117 ms
77,660 KB
testcase_22 AC 133 ms
77,420 KB
testcase_23 AC 169 ms
77,824 KB
testcase_24 AC 123 ms
77,564 KB
testcase_25 AC 120 ms
77,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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