Submission #130015

#TimeUsernameProblemLanguageResultExecution timeMemory
13001544442Aron (COCI17_aron)C++11
50 / 50
3 ms376 KiB
#include <bits/stdc++.h> using namespace std; short n,ok; char a[28]; int main (){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ if(a[i]!=a[i+1]){ ok++; } } cout<<ok+1; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...