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 main()
{
char bef_state=-1;
char buf[51];
int h=0;
scanf("%s",buf);
int i;
for(i=0;;i++)
{
if(buf[i]==0) break;
else
{
if(bef_state==buf[i])
{
h+=5;
}
else
{
bef_state=buf[i]; h+=10;
}
}
}
printf("%d",h);
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... |