仅供参考 Source ProblemId:1231UserId:acm07116 Memory:276KTime:15MS Language:G++Result:Accepted Source #include #include usingnamespacestd; intF(chara) { if(a=='A')return2; if(a=='B')return4; if(a=='C')return6; if(a=='D')return8; if(a=='E')return10; if(a=='F'