結果

問題 No.365 ジェンガソート
ユーザー recososo
提出日時 2020-02-28 15:11:55
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 243 bytes
コンパイル時間 1,597 ms
コンパイル使用メモリ 164,800 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-13 16:25:12
合計ジャッジ時間 3,067 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16 WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
    int n;cin >> n;
    int m=0,cnt=0;
    for(int i=0;i<n;i++){
        int a;cin >> a;
        if(m<a){
            cnt++;
            m=a;
        }
    }
    cout << n-cnt << endl;
}
0