結果

問題 No.2015 Stair Counter
ユーザー MasKoaTS
提出日時 2022-08-03 14:24:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 181 ms / 2,000 ms
コード長 236 bytes
コンパイル時間 286 ms
コンパイル使用メモリ 82,160 KB
実行使用メモリ 103,244 KB
最終ジャッジ日時 2024-09-13 06:28:36
合計ジャッジ時間 4,109 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in [0] * int(input()):
    n, m = map(int, input().split())
    a = list(map(int, input().split()))
    for i in range(n-1):
        if(m > a[i] + a[i+1]):
            print("No")
            break
    else:
    	print("Yes")
    
0