結果
| 問題 | No.365 ジェンガソート | 
| コンテスト | |
| ユーザー |  silopy | 
| 提出日時 | 2019-07-05 19:22:43 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 268 bytes | 
| コンパイル時間 | 773 ms | 
| コンパイル使用メモリ | 66,492 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-09-22 04:10:04 | 
| 合計ジャッジ時間 | 2,416 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 9 WA * 32 | 
ソースコード
#include<iostream>
#include<algorithm>
using namespace std;
using lint=int64_t;
int main()
{
	int N;
	int a[100010];
	cin >> N;
	for(int i=0;i<N;i++)
		cin >> a[i];
	int ans=0;
	for(int i=0;i<N-1;i++)
		if(a[i]>a[i+1])
			ans++;
	cout << ans << endl;
	return 0;
}
            
            
            
        