# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1112403 | vjudge1 | Baloni (COCI15_baloni) | C++17 | 41 ms | 7248 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;
#define int long long
int32_t main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);cout.tie(NULL);
int a,x=1;
cin>>a;
vector<int> vec(a);
for (int i = 0; i < a; ++i) cin>>vec[i];
for (int i = 0; i < a; ++i)
{
if (vec[i]>vec[i-1])
{
++x;
}
}
cout<<x<<endl;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |