結果
| 問題 | No.365 ジェンガソート | 
| コンテスト | |
| ユーザー |  kongarishisyamo | 
| 提出日時 | 2016-04-29 22:23:09 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 198 bytes | 
| コンパイル時間 | 366 ms | 
| コンパイル使用メモリ | 55,160 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-10-04 18:00:13 | 
| 合計ジャッジ時間 | 2,029 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 16 WA * 25 | 
ソースコード
#include<iostream>
using namespace std;
int main(){
	int N;
	int max,c=0;
	int in;
	cin>>N;
	cin>>max;
	for(int i=0;i<N-1;i++){
		cin>>in;
		if(in>max) max=in;
		else c++;
	}
	cout<<c<<endl;
}
            
            
            
        