Submission #224474

#TimeUsernameProblemLanguageResultExecution timeMemory
224474baoduytran0104Aron (COCI17_aron)C++14
50 / 50
5 ms384 KiB
#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 timeMemoryGrader output
Fetching results...