結果

問題 No.2089 置換の符号
ユーザー ryota sasairyota sasai
提出日時 2022-09-30 22:35:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 130 bytes
コンパイル時間 192 ms
コンパイル使用メモリ 10,624 KB
実行使用メモリ 12,324 KB
最終ジャッジ日時 2023-08-24 16:10:38
合計ジャッジ時間 6,556 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
12,324 KB
testcase_01 AC 15 ms
7,820 KB
testcase_02 AC 16 ms
7,804 KB
testcase_03 AC 16 ms
7,724 KB
testcase_04 AC 16 ms
7,724 KB
testcase_05 AC 15 ms
7,864 KB
testcase_06 AC 15 ms
7,868 KB
testcase_07 AC 16 ms
7,808 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 15 ms
7,772 KB
testcase_17 AC 15 ms
7,860 KB
testcase_18 AC 15 ms
7,736 KB
testcase_19 AC 15 ms
7,900 KB
testcase_20 AC 15 ms
7,900 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 77 ms
7,772 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 1,276 ms
8,152 KB
testcase_28 TLE -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

_,S=input(),(input()).split(" ")
print(1 if sum(len([p for p in S[:i] if int(p) < int(k)]) for i, k in enumerate(S)) % 2 else -1)
0