# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
40079 | Hebisuke | Aron (COCI17_aron) | C++14 | 0 ms | 1116 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "stdio.h"
int n,i,c=0;
char w[2],old[2];
main()
{
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%s",w);
if(i==1)
{
old[0]=w[0];
c++;
}
else if(w[0]!=old[0])
{
c++;
old[0]=w[0];
}
}
printf("%d",c+1);
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |