# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
713817 | Dulguun88 | Aron (COCI17_aron) | C++14 | 1 ms | 612 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<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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |