結果
| 問題 | No.365 ジェンガソート |
| コンテスト | |
| ユーザー |
sugarrr
|
| 提出日時 | 2018-03-02 13:29:24 |
| 言語 | C++11(廃止可能性あり) (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 826 bytes |
| 記録 | |
| コンパイル時間 | 773 ms |
| コンパイル使用メモリ | 84,420 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2025-01-02 19:49:41 |
| 合計ジャッジ時間 | 3,395 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 WA * 25 |
ソースコード
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#include<stack>
#include<queue>
#include<vector>
#include<algorithm>
#include<string>
#include<iostream>
#include<set>
#include<map>
#include<bitset>
using namespace std;
typedef long long ll;
#define i_7 1000000007
#define i_5 1000000005
ll mod(ll a){
ll c=a%i_7;
if(c>=0)return c;
else return c+i_7;
}
typedef pair<int,int> i_i;
typedef pair<ll,ll> l_l;
#define inf 100000000/*10^8*/
#define rep(i,l,r) for(int i=l;i<=r;i++)
const double EPS=1E-8;
////////////////////////////////////////
int main(){
int n;cin>>n;
int a[n];rep(i,0,n-1)cin>>a[i];
int ans=0;int max=a[0];
rep(i,1,n-1){
if(max<a[i]){
max=a[i];
}else{
ans++;
}
}
cout<<ans<<endl;
return 0;
}
sugarrr