結果
| 問題 | No.1707 Simple Range Reverse Problem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-10-15 23:29:03 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 232 bytes |
| 記録 | |
| コンパイル時間 | 260 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 60,032 KB |
| 最終ジャッジ日時 | 2026-04-06 10:08:20 |
| 合計ジャッジ時間 | 1,552 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 16 WA * 3 |
ソースコード
T = int(input())
for _ in range(T):
N = int(input())
A = list(map(int,input().split()))
count = 0
for i in range(1,2*N):
if abs(A[i-1]-A[i]) > 1:
count += 1
if count == 1:
print('Yes')
else:
print('No')