結果
| 問題 |
No.365 ジェンガソート
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-04-29 22:27:44 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 220 bytes |
| コンパイル時間 | 461 ms |
| コンパイル使用メモリ | 57,912 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-04 18:05:47 |
| 合計ジャッジ時間 | 2,002 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 32 |
ソースコード
#include <iostream>
#include <algorithm>
using namespace std;
int n;
int main()
{
cin>>n;
int a[100000+10];
cin>>a[0];
int ans=0;
for(int i=1;i<n;i++)
{
cin>>a[i];
if(a[i]<a[i-1])ans++;
}
cout<<ans<<endl;
}