結果
| 問題 | No.2015 Stair Counter |
| コンテスト | |
| ユーザー |
pitP
|
| 提出日時 | 2022-07-22 21:52:15 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 134 ms / 2,000 ms |
| + 647µs | |
| コード長 | 237 bytes |
| 記録 | |
| コンパイル時間 | 226 ms |
| コンパイル使用メモリ | 96,488 KB |
| 実行使用メモリ | 114,560 KB |
| 最終ジャッジ日時 | 2026-08-06 02:50:57 |
| 合計ジャッジ時間 | 4,702 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 |
ソースコード
t = int(input())
for _ in range(t):
n,m = map(int,input().split())
a = list(map(int,input().split()))
boo = True
for i in range(n-1):
if a[i] + a[i+1] < m:
boo = False
print("Yes" if boo else "No")
pitP