Submission #1112403

# Submission time Handle Problem Language Result Execution time Memory
1112403 2024-11-14T07:16:53 Z vjudge1 Baloni (COCI15_baloni) C++17
0 / 100
41 ms 7248 KB
#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
1 Incorrect 1 ms 336 KB Output isn't correct
2 Incorrect 1 ms 472 KB Output isn't correct
3 Incorrect 1 ms 336 KB Output isn't correct
4 Incorrect 1 ms 504 KB Output isn't correct
5 Incorrect 38 ms 6648 KB Output isn't correct
6 Incorrect 41 ms 7248 KB Output isn't correct
7 Incorrect 32 ms 5968 KB Output isn't correct
8 Incorrect 32 ms 5968 KB Output isn't correct
9 Incorrect 40 ms 6224 KB Output isn't correct
10 Incorrect 35 ms 6480 KB Output isn't correct