Submission #83759

#TimeUsernameProblemLanguageResultExecution timeMemory
83759AntonioDakiAron (COCI17_aron)C++14
50 / 50
2 ms732 KiB
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int n, s = 1; char k[27]; cin >> n; cin >> k[0]; for (int i = 1; i < n; ++i){ cin >> k[i]; if (k[i] != k[i - 1]) s += 1; } s += 1; cout << s; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...