Submission #475177

# Submission time Handle Problem Language Result Execution time Memory
475177 2021-09-21T10:41:30 Z Ahmed57 Po (COCI21_po) C++14
10 / 70
44 ms 1076 KB
#include <bits/stdc++.h>

using namespace std;

int main()
{
    long long n,ans = 0;
    cin>>n;
    vector<long long>arr(n);
    for(int i=0;i<n;i++){
        cin>>arr[i];
        if(i&&arr[i]>arr[i-1])ans++;
    }
    cout<<ans+1<<"\n";
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 328 KB Output isn't correct
2 Incorrect 0 ms 204 KB Output isn't correct
3 Incorrect 1 ms 204 KB Output isn't correct
4 Incorrect 11 ms 692 KB Output isn't correct
5 Incorrect 16 ms 892 KB Output isn't correct
6 Correct 44 ms 1076 KB Output is correct
7 Incorrect 44 ms 1064 KB Output isn't correct