【C系列1.4】奇迹暖暖系列1 1930
Time Limit: 1 s Memory Limit: 128 MB
Submission:750 AC:344 Score:0
Description
奇迹暖暖的衣服等级有A,B,C,D四个等级。5种属性,A等为1分,B等2分,C等3分,D等4分。(不符合游戏实际,不要在意细节啦)
Input
输入五个字符(A-D,都是大写)各个字符中间用空格隔开
Output
分数值,注意换行。
#include<stdio.h>
int main(){
char a,b,c,d,e;
scanf("%c %c %c %c %c",&a,&b,&c,&d,&e);
printf("%d\n",a+b+c+d+e-64*5);
}