結果

問題 No.2015 Stair Counter
ユーザー dango
提出日時 2023-06-25 14:32:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 176 ms / 2,000 ms
コード長 311 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 82,240 KB
実行使用メモリ 102,272 KB
最終ジャッジ日時 2024-07-02 13:15:54
合計ジャッジ時間 4,715 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

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