結果

問題 No.2015 Stair Counter
ユーザー 👑 rin204rin204
提出日時 2022-07-22 21:21:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 201 ms / 2,000 ms
コード長 252 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 87,332 KB
実行使用メモリ 106,896 KB
最終ジャッジ日時 2023-09-17 08:40:13
合計ジャッジ時間 5,388 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,552 KB
testcase_01 AC 171 ms
78,208 KB
testcase_02 AC 186 ms
78,920 KB
testcase_03 AC 191 ms
78,980 KB
testcase_04 AC 169 ms
78,428 KB
testcase_05 AC 160 ms
78,252 KB
testcase_06 AC 197 ms
78,272 KB
testcase_07 AC 201 ms
78,268 KB
testcase_08 AC 199 ms
78,296 KB
testcase_09 AC 91 ms
76,540 KB
testcase_10 AC 92 ms
76,464 KB
testcase_11 AC 92 ms
76,596 KB
testcase_12 AC 89 ms
76,932 KB
testcase_13 AC 90 ms
77,848 KB
testcase_14 AC 89 ms
77,684 KB
testcase_15 AC 100 ms
94,080 KB
testcase_16 AC 114 ms
103,652 KB
testcase_17 AC 105 ms
97,780 KB
testcase_18 AC 111 ms
97,888 KB
testcase_19 AC 123 ms
106,896 KB
testcase_20 AC 112 ms
104,104 KB
testcase_21 AC 167 ms
78,300 KB
testcase_22 AC 183 ms
78,248 KB
testcase_23 AC 194 ms
78,932 KB
testcase_24 AC 173 ms
78,432 KB
testcase_25 AC 171 ms
78,212 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    n, m = map(int, input().split())
    A = list(map(int, input().split()))
    for i in range(n - 1):
        if A[i] + A[i + 1] < m:
            print("No")
            return
    print("Yes")


for _ in range(int(input())):
    solve()
0