↓这是程序↓
#include<bits/stdc++.h>
using namespace std;
int main()
{
int cnt;
string c;
cin>>c;
for(int i=0;i<c.length();i++)
{
if(c[i]==' '||c[i]=='a'||c[i]=='d'||c[i]=='g'||c[i]=='j'||c[i]=='m'||c[i]=='p'||c[i]=='t'||c[i]=='w')
{
cnt+=1;
}
if(c[i]=='b'||c[i]=='e'||c[i]=='h'||c[i]=='k'||c[i]=='n'||c[i]=='q'||c[i]=='u'||c[i]=='x')
{
cnt+=2;
}
if(c[i]=='c'||c[i]=='f'||c[i]=='i'||c[i]=='l'||c[i]=='o'||c[i]=='r'||c[i]=='v'||c[i]=='y')
{
cnt+=3;
}
if(c[i]=='s'||c[i]=='z')
{
cnt+=4;
}
}
cout<<cnt;
return 0;
}