結果
| 問題 | No.2015 Stair Counter |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-07-29 16:17:25 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 115 ms / 2,000 ms |
| コード長 | 256 bytes |
| 記録 | |
| コンパイル時間 | 129 ms |
| コンパイル使用メモリ | 85,456 KB |
| 実行使用メモリ | 184,396 KB |
| 最終ジャッジ日時 | 2026-04-02 15:10:05 |
| 合計ジャッジ時間 | 2,862 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 |
ソースコード
def solve():
n,m=map(int,input().split())
a=list(map(int,input().split()))
f=True
for i in range(n-1):
if a[i]+a[i+1]<m:
f=False
break
print('Yes' if f else 'No')
for _ in range(int(input())):
solve()