結果

問題 No.2015 Stair Counter
ユーザー pluto77pluto77
提出日時 2023-01-17 16:36:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 141 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 1,159 ms
コンパイル使用メモリ 10,728 KB
実行使用メモリ 29,836 KB
最終ジャッジ日時 2023-08-30 20:28:36
合計ジャッジ時間 5,602 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,888 KB
testcase_01 AC 93 ms
7,848 KB
testcase_02 AC 112 ms
7,940 KB
testcase_03 AC 119 ms
7,832 KB
testcase_04 AC 86 ms
7,936 KB
testcase_05 AC 75 ms
7,884 KB
testcase_06 AC 138 ms
7,840 KB
testcase_07 AC 139 ms
7,940 KB
testcase_08 AC 141 ms
7,756 KB
testcase_09 AC 54 ms
8,572 KB
testcase_10 AC 56 ms
8,736 KB
testcase_11 AC 58 ms
8,396 KB
testcase_12 AC 52 ms
10,712 KB
testcase_13 AC 54 ms
11,536 KB
testcase_14 AC 55 ms
10,808 KB
testcase_15 AC 77 ms
22,324 KB
testcase_16 AC 103 ms
28,440 KB
testcase_17 AC 73 ms
10,908 KB
testcase_18 AC 90 ms
25,048 KB
testcase_19 AC 117 ms
29,836 KB
testcase_20 AC 87 ms
12,064 KB
testcase_21 AC 85 ms
7,792 KB
testcase_22 AC 110 ms
7,988 KB
testcase_23 AC 131 ms
7,916 KB
testcase_24 AC 93 ms
7,756 KB
testcase_25 AC 91 ms
7,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())
for _ in range(T):
 N,M=map(int,input().split())
 A=list(map(int,input().split()))
 x=True
 for i in range(N-1):
  if A[i]+A[i+1]<M:
   x=False
 if x:
  print("Yes")
 else:
  print("No")
0