結果

問題 No.365 ジェンガソート
ユーザー mai
提出日時 2016-04-29 22:23:35
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 409 bytes
コンパイル時間 693 ms
コンパイル使用メモリ 73,852 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-04 18:00:37
合計ジャッジ時間 2,203 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <queue>
#include <list>
#include <map>
#include <string>
#include <cstdio>

using namespace std;

int main(){
    int i,j,k,l,m,n;
    
    cin >> n;
    
    k=-1;m=0;
    for (i=0;i<n;i++){
        cin >> j;
        if (k!=-1){
            if (j<k)
                m++;
        }
        k=j;
    }
    
    cout << m << endl;
            
    
    return 0;
}
0