結果
問題 | No.1707 Simple Range Reverse Problem |
ユーザー |
|
提出日時 | 2021-10-17 20:03:10 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 287 bytes |
コンパイル時間 | 136 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-09-17 19:45:01 |
合計ジャッジ時間 | 1,586 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 6 WA * 12 |
ソースコード
def answer():N = int(input())A = list(map(int,input().split()))if A[0]!=1 or A[-1]!= N:print('No')returnif A[1] == 1 or A[-2] == N:print('No')returnprint('Yes')returnt = int(input())for _ in range(t):answer()