結果
| 問題 |
No.1707 Simple Range Reverse Problem
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-10-16 04:10:49 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 277 bytes |
| コンパイル時間 | 122 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-09-17 19:17:03 |
| 合計ジャッジ時間 | 1,590 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 5 WA * 13 |
ソースコード
T = int(input())
for i in range(T):
N = int(input())
A = list(map(int,input().split()))
X = list(range(1,N+1));X*=2
flag = 0
for j in range(N):
Y = X[:i+1]+X[i+N-1:i:-1]+X[i+N:]
if A==Y:flag=1;break
print('Yes'if flag or A==X else 'No')