# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
224474 | baoduytran0104 | Aron (COCI17_aron) | C++14 | 5 ms | 384 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, a[100], k;
char m, x;
int main()
{
cin >> n;
k = n;
while(n--) {
cin >> m;
if (x == m) k -= 1;
x = m;
}
cout << k + 1;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |