結果

問題 No.2089 置換の符号
ユーザー googol_S0googol_S0
提出日時 2022-09-30 21:27:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 511 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 2,501 ms
コンパイル使用メモリ 86,052 KB
実行使用メモリ 76,208 KB
最終ジャッジ日時 2023-08-24 14:41:20
合計ジャッジ時間 6,932 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
70,904 KB
testcase_01 AC 71 ms
70,760 KB
testcase_02 AC 70 ms
70,784 KB
testcase_03 AC 70 ms
70,656 KB
testcase_04 AC 71 ms
70,784 KB
testcase_05 AC 71 ms
70,644 KB
testcase_06 AC 72 ms
70,736 KB
testcase_07 AC 70 ms
70,728 KB
testcase_08 AC 71 ms
71,096 KB
testcase_09 AC 71 ms
70,632 KB
testcase_10 AC 72 ms
70,936 KB
testcase_11 AC 71 ms
70,648 KB
testcase_12 AC 71 ms
70,580 KB
testcase_13 AC 72 ms
71,088 KB
testcase_14 AC 73 ms
70,928 KB
testcase_15 AC 71 ms
70,900 KB
testcase_16 AC 73 ms
70,736 KB
testcase_17 AC 73 ms
70,424 KB
testcase_18 AC 74 ms
71,096 KB
testcase_19 AC 72 ms
70,812 KB
testcase_20 AC 72 ms
70,928 KB
testcase_21 AC 72 ms
70,696 KB
testcase_22 AC 76 ms
75,076 KB
testcase_23 AC 87 ms
75,764 KB
testcase_24 AC 78 ms
75,792 KB
testcase_25 AC 80 ms
75,444 KB
testcase_26 AC 80 ms
75,788 KB
testcase_27 AC 108 ms
76,192 KB
testcase_28 AC 339 ms
76,068 KB
testcase_29 AC 511 ms
76,208 KB
testcase_30 AC 499 ms
76,084 KB
testcase_31 AC 494 ms
76,024 KB
testcase_32 AC 510 ms
75,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
ANS=1
for i in range(N):
  for j in range(i+1,N):
    if A[i]>A[j]:
      ANS=-ANS
print(ANS)
0