結果
| 問題 | No.2015 Stair Counter |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2022-07-22 21:27:45 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 112 ms / 2,000 ms |
| + 534µs | |
| コード長 | 379 bytes |
| 記録 | |
| コンパイル時間 | 50 ms |
| コンパイル使用メモリ | 14,464 KB |
| 実行使用メモリ | 29,872 KB |
| 最終ジャッジ日時 | 2026-10-16 01:23:07 |
| 合計ジャッジ時間 | 3,510 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 26 |
ソースコード
import sys
input = sys.stdin.readline
T=int(input())
for tests in range(T):
N,M=map(int,input().split())
A=list(map(int,input().split()))
if max(A)>M:
print("No")
continue
for i in range(1,N):
kk=A[i-1]+A[i]
if M<=kk<=2*M:
True
else:
print("No")
break
else:
print("Yes")
titia