Submission #152768

#TimeUsernameProblemLanguageResultExecution timeMemory
152768AldeaDanutAron (COCI17_aron)C++14
50 / 50
3 ms508 KiB
#include <iostream> using namespace std; int n,cnt; char ant,x; int main(){ for(cin>>n;n;n--){ cin>>x; if(x!=ant) cnt++; ant=x; } cout<<cnt+1; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...