結果

問題 No.1707 Simple Range Reverse Problem
ユーザー prussian_coderprussian_coder
提出日時 2021-10-20 22:24:17
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 279 bytes
コンパイル時間 589 ms
コンパイル使用メモリ 81,264 KB
実行使用メモリ 61,448 KB
最終ジャッジ日時 2023-10-20 11:11:07
合計ジャッジ時間 2,147 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 49 ms
61,444 KB
testcase_15 AC 50 ms
61,444 KB
testcase_16 AC 50 ms
61,444 KB
testcase_17 AC 48 ms
61,440 KB
testcase_18 AC 51 ms
61,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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