# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
500354 | kappa | Aron (COCI17_aron) | C++14 | 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 <bits/stdc++.h>
using namespace std;
int n, ans;
char d[30];
int main(){
cin >> n;
for (int i = 0; i < n; i++)
{
cin >> d[i];
if(d[i] != d[i - 1]){
ans++;
}
}
cout << ans + 1;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |