if(s[i]=='A') sum+=1;
else if(s[i]=='B') sum+=2;
else if(s[i]=='G') sum+=3;
else if(s[i]=='D') sum+=4;
else if(s[i]=='E') sum+=5;
else if(s[i]=='#') sum+=6;
else if(s[i]=='Z') sum+=7;
else if(s[i]=='Y') sum+=8;
else if(s[i]=='H') sum+=9;
else if(s[i]=='I') sum+=10;
else if(s[i]=='K') sum+=20;
else if(s[i]=='L') sum+=30;
else if(s[i]=='M') sum+=40;
else if(s[i]=='N') sum+=50;
else if(s[i]=='X') sum+=60;
else if(s[i]=='O') sum+=70;
else if(s[i]=='P') sum+=80;
else if(s[i]=='Q') sum+=90;
else if(s[i]=='R') sum+=100;
else if(s[i]=='S') sum+=200;
else if(s[i]=='T') sum+=300;
else if(s[i]=='U') sum+=400;
else if(s[i]=='F') sum+=500;
else if(s[i]=='C') sum+=600;
else if(s[i]=='$') sum+=700;
else if(s[i]=='W') sum+=800;
else if(s[i]=='3') sum+=900;
AC (3ms, 324KB) |