結果

問題 No.2015 Stair Counter
ユーザー googol_S0googol_S0
提出日時 2022-07-22 21:45:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 212 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 380 ms
コンパイル使用メモリ 87,236 KB
実行使用メモリ 106,996 KB
最終ジャッジ日時 2023-09-17 09:29:39
合計ジャッジ時間 5,380 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,240 KB
testcase_01 AC 162 ms
77,732 KB
testcase_02 AC 183 ms
78,272 KB
testcase_03 AC 196 ms
78,908 KB
testcase_04 AC 151 ms
77,748 KB
testcase_05 AC 137 ms
77,736 KB
testcase_06 AC 202 ms
78,104 KB
testcase_07 AC 212 ms
78,232 KB
testcase_08 AC 202 ms
78,448 KB
testcase_09 AC 88 ms
76,716 KB
testcase_10 AC 90 ms
76,708 KB
testcase_11 AC 90 ms
76,932 KB
testcase_12 AC 85 ms
76,936 KB
testcase_13 AC 88 ms
77,748 KB
testcase_14 AC 90 ms
78,680 KB
testcase_15 AC 98 ms
94,140 KB
testcase_16 AC 111 ms
103,808 KB
testcase_17 AC 100 ms
98,048 KB
testcase_18 AC 103 ms
97,696 KB
testcase_19 AC 114 ms
106,996 KB
testcase_20 AC 107 ms
104,048 KB
testcase_21 AC 150 ms
77,756 KB
testcase_22 AC 139 ms
77,492 KB
testcase_23 AC 198 ms
78,028 KB
testcase_24 AC 169 ms
78,036 KB
testcase_25 AC 168 ms
78,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for t in range(int(input())):
  N,M=map(int,input().split())
  A=list(map(int,input().split()))
  ANS='Yes'
  for i in range(N-1):
    if A[i]+A[i+1]<M:
      ANS='No'
      break
  print(ANS)
0