結果

問題 No.1707 Simple Range Reverse Problem
コンテスト
ユーザー prussian_coder
提出日時 2021-10-20 22:24:17
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 279 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 234 ms
コンパイル使用メモリ 85,756 KB
実行使用メモリ 64,164 KB
最終ジャッジ日時 2026-04-08 18:26:21
合計ジャッジ時間 2,052 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other AC * 6 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

Q=int(input())
from collections import Counter
for _ in range(Q):
    N=int(input())
    C=Counter([int(x) for x in input().split()])
    flag=True
    for i in range(N):
        if C[i-1]!=2:
            flag=False
    if flag:
        print("Yes")
    else:
        print("No")
0