結果
| 問題 |
No.2015 Stair Counter
|
| コンテスト | |
| ユーザー |
MasKoaTS
|
| 提出日時 | 2022-08-03 14:22:53 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 255 bytes |
| コンパイル時間 | 166 ms |
| コンパイル使用メモリ | 82,248 KB |
| 実行使用メモリ | 107,784 KB |
| 最終ジャッジ日時 | 2024-09-13 06:26:59 |
| 合計ジャッジ時間 | 4,532 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 5 WA * 20 |
ソースコード
for _ in [0] * int(input()):
n, m = map(int, input().split())
a = [m] + list(map(int, input().split())) + [m,m]
for i in range(n+1):
if(a[i] > a[i+1] + a[i+2]):
print("No")
break
else:
print("Yes")
MasKoaTS