結果
問題 | No.2289 順列ソート |
ユーザー |
|
提出日時 | 2023-06-30 13:17:53 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 159 bytes |
コンパイル時間 | 203 ms |
コンパイル使用メモリ | 82,092 KB |
実行使用メモリ | 54,612 KB |
最終ジャッジ日時 | 2024-07-07 01:21:13 |
合計ジャッジ時間 | 1,943 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 WA * 16 |
ソースコード
N = int(input()) P = list(map(int, input().split())) ans = 0 for i in range(1,N): if sorted(P[:i+1]) != sorted(P[:i]) + [P[i]]: ans += 1 print(ans)