結果

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

ソースコード

diff #

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