結果

問題 No.365 ジェンガソート
ユーザー roiti46
提出日時 2016-04-29 22:37:25
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 272 bytes
コンパイル時間 191 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 16,824 KB
最終ジャッジ日時 2024-10-04 18:17:06
合計ジャッジ時間 3,487 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16 WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll

N = int(raw_input())
a = map(int, raw_input().split())

ans = 0
mx = 0
for i in xrange(N):
    if a[i] < mx:
        ans += 1
    else:
        mx = a[i]
print ans
0