Submission #713817

#TimeUsernameProblemLanguageResultExecution timeMemory
713817Dulguun88Aron (COCI17_aron)C++14
50 / 50
1 ms612 KiB
#include<bits/stdc++.h> using namespace std; int main(){ int n,cnt=1; cin>>n; string s[10000]; for(int i=0 ; i<n ; i++) cin>>s[i]; for(int i=0 ; i<n;i++){ if(s[i]!=s[i+1]) cnt++; } cout<<cnt; }
#Verdict Execution timeMemoryGrader output
Fetching results...