結果

問題 No.2015 Stair Counter
ユーザー DrDrpilot
提出日時 2022-07-29 16:17:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 151 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 82,116 KB
実行使用メモリ 102,528 KB
最終ジャッジ日時 2024-07-19 07:30:34
合計ジャッジ時間 3,858 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    n,m=map(int,input().split())
    a=list(map(int,input().split()))
    f=True
    for i in range(n-1):
        if a[i]+a[i+1]<m:
            f=False
            break
    print('Yes' if f else 'No')
for _ in range(int(input())):
    solve()
0