結果

問題 No.2015 Stair Counter
ユーザー vwxyz
提出日時 2022-09-06 15:12:20
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 312 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 29,536 KB
最終ジャッジ日時 2024-11-21 16:23:08
合計ジャッジ時間 4,139 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
import sys
readline=sys.stdin.readline
write=sys.stdout.write

T=int(readline())
for t in range(T):
    N,M=map(int,readline().split())
    A=list(map(int,readline().split()))
    ans="Yes"
    for n in range(N-1):
        if A[n]+A[n+1]<M:
            ans="No"
    print(ans)
0