Submission #156385

#TimeUsernameProblemLanguageResultExecution timeMemory
156385dcjAron (COCI17_aron)C++14
50 / 50
2 ms376 KiB
#include <iostream> using namespace std; int main() { int N; int br=0; cin >> N; char x, p ='.'; while (N--) { cin >> x; if (x != p) br++; p=x; } cout << br+1; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...