結果

問題 No.2015 Stair Counter
ユーザー hiragnhiragn
提出日時 2022-11-30 19:38:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 163 ms / 2,000 ms
コード長 306 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 29,536 KB
最終ジャッジ日時 2024-04-16 16:52:15
合計ジャッジ時間 4,295 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,752 KB
testcase_01 AC 113 ms
10,624 KB
testcase_02 AC 130 ms
10,624 KB
testcase_03 AC 144 ms
10,496 KB
testcase_04 AC 100 ms
10,496 KB
testcase_05 AC 89 ms
10,752 KB
testcase_06 AC 160 ms
10,624 KB
testcase_07 AC 163 ms
10,752 KB
testcase_08 AC 161 ms
10,752 KB
testcase_09 AC 62 ms
11,136 KB
testcase_10 AC 64 ms
11,008 KB
testcase_11 AC 67 ms
11,008 KB
testcase_12 AC 64 ms
13,036 KB
testcase_13 AC 65 ms
13,440 KB
testcase_14 AC 65 ms
13,568 KB
testcase_15 AC 88 ms
22,948 KB
testcase_16 AC 113 ms
28,192 KB
testcase_17 AC 70 ms
13,352 KB
testcase_18 AC 100 ms
25,440 KB
testcase_19 AC 124 ms
29,536 KB
testcase_20 AC 76 ms
14,724 KB
testcase_21 AC 99 ms
10,496 KB
testcase_22 AC 131 ms
10,752 KB
testcase_23 AC 156 ms
10,752 KB
testcase_24 AC 107 ms
10,496 KB
testcase_25 AC 105 ms
10,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    t = int(input())

    for _ in range(t):
        n, m = map(int, input().split())
        a = list(map(int, input().split()))

        if all(a[i] + a[i + 1] >= m for i in range(n - 1)):
            print("Yes")
        else:
            print("No")


if __name__ == "__main__":
    main()
0