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>
FILE * in = stdin;
FILE * out = stdout;
int main(){
int i;
char str[100];
int ans;
fscanf(in, "%s", str);
ans = 10;
for (i=1; str[i]; i++){
if (str[i]==str[i-1]) ans += 5;
else ans += 10;
}
fprintf(out, "%d", ans);
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... |