Submission #38169

#TimeUsernameProblemLanguageResultExecution timeMemory
38169wasylAron (COCI17_aron)C++11
50 / 50
0 ms2176 KiB
#include <iostream> using namespace std; int main() { ios::sync_with_stdio(false); int n; cin >> n; char pop = ' '; int res = 0; while (n--) { char c; cin >> c; res += (pop != c); pop = c; } cout << res + 1 << '\n'; }
#Verdict Execution timeMemoryGrader output
Fetching results...