結果

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

ソースコード

diff #

#!/usr/bin/env python
#coding:utf8


def read():
    raw_input()
    return map(int, raw_input().split())


def work(vList):
    maxV = -(1 << 30)
    ans = 0
    
    for v in vList:
        if maxV < v:
            maxV = v
        elif maxV > v:
            ans += 1
    
    print ans


if __name__ == "__main__":
    work(read())
0