# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
879714 | 1075508020060209tc | Aron (COCI17_aron) | C++14 | 0 ms | 436 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.
//#pragma gcc optimize("O2")
#include <bits/stdc++.h>
//#include<complex>
using namespace std;
#define int long long
int n;
signed main(){
char c;
char tmp;
c='*';
int ans=1;
cin>>n;
for(int i=1;i<=n;i++){
cin>>tmp;
if(tmp!=c){
ans++;
}
c=tmp;
}
cout<<ans<<endl;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |