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>
#include <string.h>
char arr[51];
int main()
{
char p;
int r=10,len,i;
scanf("%s",&arr);
len=strlen(arr);
p=arr[0];
for(i=1;i<len;i++)
{
if(arr[i]==p)
r+=5;
else
{
p=arr[i];
r+=10;
}
}
printf("%d",r);
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |