結果

問題 No.2015 Stair Counter
ユーザー dangodango
提出日時 2023-06-25 14:32:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 208 ms / 2,000 ms
コード長 311 bytes
コンパイル時間 376 ms
コンパイル使用メモリ 87,092 KB
実行使用メモリ 106,944 KB
最終ジャッジ日時 2023-09-15 09:10:45
合計ジャッジ時間 5,794 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,524 KB
testcase_01 AC 165 ms
78,072 KB
testcase_02 AC 183 ms
78,728 KB
testcase_03 AC 199 ms
78,788 KB
testcase_04 AC 150 ms
77,996 KB
testcase_05 AC 136 ms
77,776 KB
testcase_06 AC 205 ms
78,780 KB
testcase_07 AC 202 ms
78,324 KB
testcase_08 AC 208 ms
78,712 KB
testcase_09 AC 88 ms
76,476 KB
testcase_10 AC 90 ms
76,576 KB
testcase_11 AC 90 ms
76,464 KB
testcase_12 AC 84 ms
76,964 KB
testcase_13 AC 86 ms
77,728 KB
testcase_14 AC 87 ms
77,776 KB
testcase_15 AC 96 ms
93,900 KB
testcase_16 AC 112 ms
103,960 KB
testcase_17 AC 96 ms
97,572 KB
testcase_18 AC 101 ms
97,628 KB
testcase_19 AC 111 ms
106,944 KB
testcase_20 AC 103 ms
104,012 KB
testcase_21 AC 149 ms
77,996 KB
testcase_22 AC 140 ms
77,888 KB
testcase_23 AC 195 ms
78,400 KB
testcase_24 AC 172 ms
78,404 KB
testcase_25 AC 164 ms
78,488 KB
権限があれば一括ダウンロードができます

ソースコード

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