ACGO
2024-02-19 19:06:49
发布于:北京
0阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main(){
int m;
char n;
cin>>n;
if(n>='a' && n<='z')
cout<<n-97+1;
if(n>='A' && n<='Z')
cout<<n-65+1;
/*if(n=='a'){
cout<<"1";
}else if(n=='b'){
cout<<"2";
}else if(n=='c'){
cout<<"3";
}else if(n=='d'){
cout<<"4";
}else if(n=='e'){
cout<<"5";
}else if(n=='f'){
cout<<"6";
}else if(n=='g'){
cout<<"7";
}else if(n=='h'){
cout<<"8";
}else if(n=='i'){
cout<<"9";
}else if(n=='j){
cout<<"10";
}else if(n=='k'){
cout<<"11";
}else if(n=='l'){
cout<<"12";
}else if(n=='m'){
cout<<"13";
}else if(n=='n'){
cout<<"14";
}else if(n=='o'){
cout<<"";
}else if(n==''){
cout<<"";
}else if(n==''){
cout<<"";
}else if(n==''){
cout<<"";
}else if(n==''){
cout<<"";
}else */
return 0;
}
这里空空如也
有帮助,赞一个