結果

問題 No.1707 Simple Range Reverse Problem
コンテスト
ユーザー prussian_coder
提出日時 2021-10-20 22:24:17
言語 PyPy3
(7.3.23)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 279 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 230 ms
コンパイル使用メモリ 96,076 KB
実行使用メモリ 84,176 KB
最終ジャッジ日時 2026-08-31 15:06:57
合計ジャッジ時間 3,168 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