結果
問題 |
No.2089 置換の符号
|
ユーザー |
|
提出日時 | 2022-09-30 22:21:46 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 163 bytes |
コンパイル時間 | 181 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,648 KB |
最終ジャッジ日時 | 2024-12-23 00:05:25 |
合計ジャッジ時間 | 2,388 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 WA * 11 |
ソースコード
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 or (2*t+1)%4==0: print (1) else: print (-1)