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>
int main()
{
char a[51];
int i, hap=0, len;
scanf("%s",a);
len=strlen(a);
if(len!=0) hap=10; //대회해서 했던대로 하겠다!
for(i=1;i<len;i++)
{
if(a[i]==a[i-1]) hap=hap+5;
else hap=hap+10;
}
printf("%d",hap);
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... |