結果

問題 No.1425 Yet Another Cyclic Shifts Sorting
ユーザー lam6er
提出日時 2025-04-09 20:56:08
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 162 bytes
コンパイル時間 531 ms
コンパイル使用メモリ 82,344 KB
実行使用メモリ 106,536 KB
最終ジャッジ日時 2025-04-09 20:56:56
合計ジャッジ時間 5,560 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
sorted_a = sorted(a)
count = 0
for i in range(n - 1):
    if a[i] > a[i + 1]:
        count += 1
print(count)
0