Submission #83758

#TimeUsernameProblemLanguageResultExecution timeMemory
83758AntonioDakiAron (COCI17_aron)C++14
45 / 50
3 ms684 KiB
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int n, s = 1; string k; 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...