結果
| 問題 |
No.2836 Comment Out
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-09 21:39:40 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 289 bytes |
| コンパイル時間 | 150 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 33,132 KB |
| 最終ジャッジ日時 | 2024-08-09 21:39:51 |
| 合計ジャッジ時間 | 6,837 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 RE * 2 |
| other | AC * 3 RE * 49 |
ソースコード
N = int(input())
A = list(map(int, input().split()))
B = [10 ** 10, A[0]]
for i in range(1, N) :
if A[i] != A[i - 1] :
B.append(A[i])
B.append(10 ** 10)
for i in range(1, len(B) - 1) :
if B[i - 1] > B[i] and B[i] < B[i + 1] :
if B[i] > 1 :
print("No")
assert False
print("Yes")