結果

問題 No.2015 Stair Counter
ユーザー ramdosramdos
提出日時 2022-01-18 20:09:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 197 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 10,644 KB
実行使用メモリ 29,912 KB
最終ジャッジ日時 2023-08-29 00:43:41
合計ジャッジ時間 5,170 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,908 KB
testcase_01 AC 92 ms
7,928 KB
testcase_02 AC 109 ms
7,856 KB
testcase_03 AC 122 ms
7,864 KB
testcase_04 AC 82 ms
7,900 KB
testcase_05 AC 71 ms
7,780 KB
testcase_06 AC 134 ms
7,868 KB
testcase_07 AC 135 ms
7,812 KB
testcase_08 AC 135 ms
7,772 KB
testcase_09 AC 49 ms
8,524 KB
testcase_10 AC 51 ms
8,504 KB
testcase_11 AC 52 ms
8,664 KB
testcase_12 AC 50 ms
10,780 KB
testcase_13 AC 51 ms
11,576 KB
testcase_14 AC 52 ms
10,776 KB
testcase_15 AC 79 ms
22,400 KB
testcase_16 AC 102 ms
27,072 KB
testcase_17 AC 58 ms
10,924 KB
testcase_18 AC 93 ms
25,100 KB
testcase_19 AC 119 ms
29,912 KB
testcase_20 AC 62 ms
11,292 KB
testcase_21 AC 84 ms
7,828 KB
testcase_22 AC 108 ms
7,784 KB
testcase_23 AC 127 ms
7,820 KB
testcase_24 AC 90 ms
7,960 KB
testcase_25 AC 86 ms
7,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
  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")
      break
  else:
    print("Yes")
0