結果

問題 No.2015 Stair Counter
ユーザー MasKoaTSMasKoaTS
提出日時 2022-08-03 14:24:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 223 ms / 2,000 ms
コード長 236 bytes
コンパイル時間 510 ms
コンパイル使用メモリ 86,392 KB
実行使用メモリ 106,616 KB
最終ジャッジ日時 2023-10-11 07:20:01
合計ジャッジ時間 5,757 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
70,872 KB
testcase_01 AC 170 ms
77,564 KB
testcase_02 AC 193 ms
78,188 KB
testcase_03 AC 204 ms
78,688 KB
testcase_04 AC 155 ms
77,604 KB
testcase_05 AC 143 ms
77,372 KB
testcase_06 AC 212 ms
77,980 KB
testcase_07 AC 223 ms
78,468 KB
testcase_08 AC 210 ms
78,024 KB
testcase_09 AC 93 ms
76,304 KB
testcase_10 AC 91 ms
76,284 KB
testcase_11 AC 97 ms
76,576 KB
testcase_12 AC 89 ms
76,836 KB
testcase_13 AC 92 ms
77,872 KB
testcase_14 AC 92 ms
78,212 KB
testcase_15 AC 103 ms
94,256 KB
testcase_16 AC 112 ms
103,508 KB
testcase_17 AC 103 ms
97,520 KB
testcase_18 AC 106 ms
97,412 KB
testcase_19 AC 115 ms
106,616 KB
testcase_20 AC 107 ms
104,000 KB
testcase_21 AC 157 ms
77,524 KB
testcase_22 AC 144 ms
77,472 KB
testcase_23 AC 208 ms
78,460 KB
testcase_24 AC 177 ms
77,684 KB
testcase_25 AC 172 ms
77,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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