제출 #1192142

#제출 시각아이디문제언어결과실행 시간메모리
1192142hmmmBaloni (COCI15_baloni)C++20
0 / 100
32 ms4108 KiB
#include<bits/stdc++.h>
using namespace std;
const int N=1e6+5;
int a[N];

int main(){
  ios::sync_with_stdio(0); cin.tie(0);
  int n,ans=0;
  cin >> n;
  for(int i=1;i<=n;i++) cin >> a[i];
  a[n+1]=1e9;
  for(int i=1;i<=n;i++){
    if(a[i]<a[i+1]) ans++;
  }
  cout << ans;
}
  
#Verdict Execution timeMemoryGrader output
Fetching results...