# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
153847 | denmircea | Baloni (COCI15_baloni) | C++14 | 356 ms | 3928 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 <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 |
---|---|---|---|---|
Fetching results... |