1 条题解
-
3
原始人方法
#include<bits/stdc++.h> using namespace std; int main() { char a; cin>>a; if(a=='a') { cout<<"A"; } if(a=='b') { cout<<"B"; } if(a=='c') { cout<<"C"; } if(a=='d') { cout<<"D"; } if(a=='e') { cout<<"E"; } if(a=='f') { cout<<"F"; } if(a=='g') { cout<<"G"; } if(a=='h') { cout<<"H"; } if(a=='i') { cout<<"I"; } if(a=='j') { cout<<"J"; } if(a=='k') { cout<<"K"; } if(a=='l') { cout<<"L"; } if(a=='m') { cout<<"M"; } if(a=='n') { cout<<"N"; } if(a=='o') { cout<<"O"; } if(a=='p') { cout<<"P"; } if(a=='q') { cout<<"Q"; } if(a=='r') { cout<<"R"; } if(a=='s') { cout<<"S"; } if(a=='t') { cout<<"T"; } if(a=='u') { cout<<"U"; } if(a=='v') { cout<<"V"; } if(a=='w') { cout<<"W"; } if(a=='x') { cout<<"X"; } if(a=='y') { cout<<"Y"; } if(a=='z') { cout<<"Z"; } if(a=='A') { cout<<"a"; } if(a=='B') { cout<<"b"; } if(a=='C') { cout<<"c"; } if(a=='D') { cout<<"d"; } if(a=='E') { cout<<"e"; } if(a=='F') { cout<<"f"; } if(a=='G') { cout<<"g"; } if(a=='H') { cout<<"h"; } if(a=='I') { cout<<"i"; } if(a=='J') { cout<<"j"; } if(a=='K') { cout<<"k"; } if(a=='L') { cout<<"l"; } if(a=='M') { cout<<"m"; } if(a=='N') { cout<<"n"; } if(a=='O') { cout<<"o"; } if(a=='P') { cout<<"p"; } if(a=='Q') { cout<<"q"; } if(a=='R') { cout<<"r"; } if(a=='S') { cout<<"s"; } if(a=='T') { cout<<"t"; } if(a=='U') { cout<<"u"; } if(a=='V') { cout<<"v"; } if(a=='W') { cout<<"w"; } if(a=='X') { cout<<"x"; } if(a=='Y') { cout<<"y"; } if(a=='Z') { cout<<"z"; } return 0; }多是多了点,麻烦是麻烦点,但是一定是满分,
- 1
信息
- 编号
- 2288
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 2
- 标签
- 递交数
- 105
- 已通过
- 69
- 上传者