結果
問題 |
No.2836 Comment Out
|
ユーザー |
|
提出日時 | 2024-08-09 21:38:58 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 296 bytes |
コンパイル時間 | 103 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 33,144 KB |
最終ジャッジ日時 | 2024-08-09 21:39:06 |
合計ジャッジ時間 | 7,406 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 RE * 2 |
other | AC * 26 WA * 23 RE * 3 |
ソースコード
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") exit() print("Yes") assert False