Submission #1112434

# Submission time Handle Problem Language Result Execution time Memory
1112434 2024-11-14T07:49:34 Z vjudge1 Baloni (COCI15_baloni) C++17
0 / 100
129 ms 3664 KB
#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    int say=1;
    cin>>n;
    int h[n];
    for(int i=0;i<n;i++)
    {
        cin>>h[i];
    }
    for(int i=1;i<n;i++)
    {
        if(h[i]+1!=h[i-1])
        {
            say++;
        }
    }
    cout<<say<<endl;

    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 336 KB Output isn't correct
2 Incorrect 1 ms 336 KB Output isn't correct
3 Incorrect 1 ms 336 KB Output isn't correct
4 Incorrect 2 ms 336 KB Output isn't correct
5 Incorrect 122 ms 3512 KB Output isn't correct
6 Incorrect 129 ms 3664 KB Output isn't correct
7 Incorrect 87 ms 3280 KB Output isn't correct
8 Incorrect 86 ms 3168 KB Output isn't correct
9 Incorrect 96 ms 3396 KB Output isn't correct
10 Incorrect 94 ms 3408 KB Output isn't correct