結果

問題 No.365 ジェンガソート
ユーザー g-tetsuya
提出日時 2016-05-22 18:09:01
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 151 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 20,764 KB
最終ジャッジ日時 2024-10-06 20:35:28
合計ジャッジ時間 3,744 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = [int(i) for i in input().split()]

c = 0

for i in reversed(range(1, N)):
    if A[i] < A[i - 1]:
        c += 1
        
print(c)
0