結果
問題 |
No.2089 置換の符号
|
ユーザー |
|
提出日時 | 2022-09-30 22:12:25 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 146 bytes |
コンパイル時間 | 129 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,776 KB |
最終ジャッジ日時 | 2024-12-22 23:56:07 |
合計ジャッジ時間 | 2,055 ms |
ジャッジサーバーID (参考情報) |
judge1 / 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: print(1) else: print(-1)