# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
397511 | Iwanttobreakfree | Aron (COCI17_aron) | C++98 | 1 ms | 296 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>
using namespace std;
int main(){
int n,sum=0;
char c,g='n';
cin>>n;
while(n--){
cin>>c;
if(c!=g)sum++;
g=c;
}
cout<<sum+1;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |