結果

問題 No.365 ジェンガソート
ユーザー grain_sb
提出日時 2016-04-30 11:35:40
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 341 bytes
コンパイル時間 504 ms
コンパイル使用メモリ 53,852 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-04 23:58:35
合計ジャッジ時間 2,226 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16 WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(void){
    // Here your code !
    int cnt = 0, last = 0, ans = 0;
    cin >> cnt;
    for(int i = 0; i < cnt; i++) {
        int in;
        cin >> in;
        if(in > last) {
            last = in;
        }
        else
            ans++;
    }
    
    cout << ans;
    
    return 0;
}
0