結果

問題 No.2015 Stair Counter
ユーザー Akijin_007Akijin_007
提出日時 2022-07-22 21:38:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 162 ms / 2,000 ms
コード長 451 bytes
コンパイル時間 1,075 ms
コンパイル使用メモリ 86,488 KB
実行使用メモリ 106,952 KB
最終ジャッジ日時 2023-09-17 09:14:49
合計ジャッジ時間 6,225 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
70,836 KB
testcase_01 AC 150 ms
79,112 KB
testcase_02 AC 151 ms
79,932 KB
testcase_03 AC 152 ms
79,864 KB
testcase_04 AC 141 ms
79,196 KB
testcase_05 AC 141 ms
79,540 KB
testcase_06 AC 162 ms
81,156 KB
testcase_07 AC 159 ms
81,316 KB
testcase_08 AC 160 ms
81,828 KB
testcase_09 AC 88 ms
76,916 KB
testcase_10 AC 90 ms
77,152 KB
testcase_11 AC 89 ms
77,180 KB
testcase_12 AC 87 ms
77,484 KB
testcase_13 AC 91 ms
78,132 KB
testcase_14 AC 89 ms
78,044 KB
testcase_15 AC 98 ms
93,900 KB
testcase_16 AC 111 ms
103,556 KB
testcase_17 AC 99 ms
97,652 KB
testcase_18 AC 102 ms
97,420 KB
testcase_19 AC 115 ms
106,952 KB
testcase_20 AC 106 ms
103,856 KB
testcase_21 AC 143 ms
79,020 KB
testcase_22 AC 152 ms
80,120 KB
testcase_23 AC 160 ms
81,168 KB
testcase_24 AC 145 ms
79,192 KB
testcase_25 AC 148 ms
79,320 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#int(input())
#map(int, input().split())
#list(map(int, input().split()))

T = int(input())

n = [0] * T
a = [0] * T
for i in range(T):
    n[i] = list(map(int, input().split()))
    a[i] = list(map(int, input().split()))

for j in range(T):
    N, M = n[j][0], n[j][1]
    A = a[j]
    f = 1
    for i in range(N-1):
        if M > A[i] + A[i+1]:
            f = 0
            break
    if f == 1:
        print("Yes")
    else:
        print("No")

0