# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
713819 | Dulguun88 | Baloni (COCI15_baloni) | C++14 | 185 ms | 7216 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,cnt=0;;
cin>>n;
vector<int> v(n);
for(int i=0 ; i<n ; i++) cin>>v[i];
for(int i=0 ; i<n ; i++){
if(v[i]<v[i+1]) cnt++;
}
cout<<cnt+1;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |