結果
| 問題 | No.2015 Stair Counter |
| コンテスト | |
| ユーザー |
pitP
|
| 提出日時 | 2022-07-22 21:52:15 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 113 ms / 2,000 ms |
| コード長 | 237 bytes |
| 記録 | |
| コンパイル時間 | 347 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 101,888 KB |
| 最終ジャッジ日時 | 2026-03-25 14:18:07 |
| 合計ジャッジ時間 | 3,650 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / 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