結果
問題 |
No.1707 Simple Range Reverse Problem
|
ユーザー |
![]() |
提出日時 | 2022-03-09 21:51:45 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 396 bytes |
コンパイル時間 | 314 ms |
コンパイル使用メモリ | 82,128 KB |
実行使用メモリ | 60,988 KB |
最終ジャッジ日時 | 2024-09-13 23:08:31 |
合計ジャッジ時間 | 1,871 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 7 WA * 11 |
ソースコード
T = int(input()) for t in range(T): N = int(input()) A = list(map(int, input().split())) if sorted(A) != sorted(list(range(1,N+1)) * 2): print("No") continue if A[0] != 1 or A[2 * N - 1] != N: print("No") continue for i in range(1, 2 * N): if A[i] == A[i - 1]: print("No") break else: print("Yes")