Submission #153847

# Submission time Handle Problem Language Result Execution time Memory
153847 2019-09-17T04:54:15 Z denmircea Baloni (COCI15_baloni) C++14
0 / 100
356 ms 3928 KB
#include <iostream>
#include <algorithm>
using namespace std;
int i,n,x,nr,y;

int main()
{
  cin>>n;
  cin>>x;
  nr=1;
  for(i=2;i<=n;i++){
    cin>>y;
    if(x-y!=1){
        nr++;
    }
    x=y;
  }
  cout<<nr;
}
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 252 KB Output isn't correct
2 Incorrect 3 ms 256 KB Output isn't correct
3 Incorrect 4 ms 376 KB Output isn't correct
4 Incorrect 4 ms 376 KB Output isn't correct
5 Incorrect 326 ms 3928 KB Output isn't correct
6 Incorrect 356 ms 3796 KB Output isn't correct
7 Incorrect 265 ms 3196 KB Output isn't correct
8 Incorrect 267 ms 3196 KB Output isn't correct
9 Incorrect 297 ms 3576 KB Output isn't correct
10 Incorrect 294 ms 3448 KB Output isn't correct