#include<stdio.h>
#include<string.h>
int main(){
int count=0,l,i;
char a[1001];
i=0;
while((a[i]=getchar())!='\n'){
i++;
}
l=strlen(a);
for(i=0;i<l;i++){
if(a[i]=='a'||a[i]=='d'||a[i]=='g'||a[i]=='j'||a[i]=='m'||a[i]=='p'||a[i]=='t'||a[i]=='w'||a[i]==' '){
count++;
}else if(a[i]=='b'||a[i]=='e'||a[i]=='h'||a[i]=='k'||a[i]=='n'||a[i]=='q'||a[i]=='u'||a[i]=='x'){
count+=2;
}else if(a[i]=='s'||a[i]=='z'){
count+=4;
}else{
count+=3;
}
}
printf("%d",count);
return 0;
}
答案输出26,找不到错误在哪里