結果

問題 No.2015 Stair Counter
ユーザー DrDrpilotDrDrpilot
提出日時 2022-07-29 16:17:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 195 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 307 ms
コンパイル使用メモリ 86,888 KB
実行使用メモリ 107,108 KB
最終ジャッジ日時 2023-09-26 13:06:42
合計ジャッジ時間 5,818 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,376 KB
testcase_01 AC 166 ms
78,116 KB
testcase_02 AC 182 ms
78,632 KB
testcase_03 AC 187 ms
78,848 KB
testcase_04 AC 165 ms
78,044 KB
testcase_05 AC 157 ms
78,204 KB
testcase_06 AC 193 ms
78,360 KB
testcase_07 AC 195 ms
78,048 KB
testcase_08 AC 191 ms
78,200 KB
testcase_09 AC 89 ms
76,292 KB
testcase_10 AC 90 ms
76,808 KB
testcase_11 AC 91 ms
76,360 KB
testcase_12 AC 87 ms
76,904 KB
testcase_13 AC 87 ms
77,880 KB
testcase_14 AC 87 ms
77,496 KB
testcase_15 AC 98 ms
94,176 KB
testcase_16 AC 109 ms
103,540 KB
testcase_17 AC 99 ms
97,540 KB
testcase_18 AC 103 ms
97,468 KB
testcase_19 AC 112 ms
107,108 KB
testcase_20 AC 104 ms
104,084 KB
testcase_21 AC 165 ms
78,192 KB
testcase_22 AC 183 ms
78,328 KB
testcase_23 AC 192 ms
78,588 KB
testcase_24 AC 172 ms
78,044 KB
testcase_25 AC 164 ms
78,560 KB
権限があれば一括ダウンロードができます

ソースコード

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