Submission #153847

#TimeUsernameProblemLanguageResultExecution timeMemory
153847denmirceaBaloni (COCI15_baloni)C++14
0 / 100
356 ms3928 KiB
#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 timeMemoryGrader output
Fetching results...