結果

問題 No.2089 置換の符号
ユーザー a aa a
提出日時 2022-09-30 22:12:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 146 bytes
コンパイル時間 904 ms
コンパイル使用メモリ 10,640 KB
実行使用メモリ 9,188 KB
最終ジャッジ日時 2023-08-24 15:45:34
合計ジャッジ時間 1,799 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,760 KB
testcase_01 AC 15 ms
7,820 KB
testcase_02 WA -
testcase_03 AC 14 ms
7,804 KB
testcase_04 AC 14 ms
7,748 KB
testcase_05 AC 14 ms
7,832 KB
testcase_06 WA -
testcase_07 AC 14 ms
7,804 KB
testcase_08 AC 14 ms
7,896 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 14 ms
7,776 KB
testcase_13 AC 14 ms
7,776 KB
testcase_14 AC 14 ms
7,780 KB
testcase_15 WA -
testcase_16 AC 15 ms
7,780 KB
testcase_17 AC 15 ms
7,820 KB
testcase_18 WA -
testcase_19 AC 14 ms
7,772 KB
testcase_20 AC 15 ms
7,756 KB
testcase_21 WA -
testcase_22 AC 14 ms
7,872 KB
testcase_23 AC 14 ms
7,892 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 15 ms
7,800 KB
testcase_27 AC 15 ms
8,296 KB
testcase_28 AC 18 ms
8,864 KB
testcase_29 AC 19 ms
9,176 KB
testcase_30 AC 20 ms
9,188 KB
testcase_31 WA -
testcase_32 AC 20 ms
9,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
s=list(map(int,input().split()))
t=0
for i in range(n):
    if s[i]!=i+1:
        t+=1
if t%4==0:
    print(1)
else:
    print(-1)
0