結果

問題 No.2015 Stair Counter
ユーザー takahashi0359takahashi0359
提出日時 2022-11-16 15:42:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 146 ms / 2,000 ms
コード長 215 bytes
コンパイル時間 121 ms
コンパイル使用メモリ 11,628 KB
実行使用メモリ 31,748 KB
最終ジャッジ日時 2023-10-17 14:01:52
合計ジャッジ時間 5,741 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,004 KB
testcase_01 AC 103 ms
10,024 KB
testcase_02 AC 120 ms
10,020 KB
testcase_03 AC 131 ms
10,020 KB
testcase_04 AC 94 ms
10,024 KB
testcase_05 AC 82 ms
10,040 KB
testcase_06 AC 146 ms
10,020 KB
testcase_07 AC 144 ms
10,020 KB
testcase_08 AC 142 ms
10,020 KB
testcase_09 AC 60 ms
10,476 KB
testcase_10 AC 60 ms
10,468 KB
testcase_11 AC 61 ms
10,460 KB
testcase_12 AC 60 ms
12,548 KB
testcase_13 AC 62 ms
12,708 KB
testcase_14 AC 62 ms
12,724 KB
testcase_15 AC 87 ms
24,184 KB
testcase_16 AC 109 ms
28,868 KB
testcase_17 AC 71 ms
12,672 KB
testcase_18 AC 99 ms
26,892 KB
testcase_19 AC 128 ms
31,748 KB
testcase_20 AC 74 ms
13,188 KB
testcase_21 AC 97 ms
10,024 KB
testcase_22 AC 123 ms
10,020 KB
testcase_23 AC 143 ms
10,020 KB
testcase_24 AC 103 ms
10,024 KB
testcase_25 AC 97 ms
10,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
    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