2 条题解
-
1240803gj徐嘉昊 (2212224徐嘉昊) LV 10 @ 2023-06-28 12:16:30
#include<bits/stdc++.h> using namespace std; char ch; int main() { cin>>ch; if('a'<=ch&&ch<='z')ch-=32; cout<<char(ch); return 0; }
-
12022-08-15 10:08:21@
#include<bits/stdc++.h>
using namespace std;
int main()
{
char ch;
cin>>ch;
if(ch=='a'||ch=='A')
{
cout<<"A";
return 0;
}
if(ch=='b'||ch=='B')
{
cout<<"B";
return 0;
}
if(ch=='c'||ch=='C')
{
cout<<"C";
return 0;
}
if(ch=='d'||ch=='D')
{
cout<<"D";
return 0;
}if(ch=='e'||ch=='E')
{
cout<<"E";
return 0;
}
if(ch=='f'||ch=='F')
{
cout<<"F";
return 0;
}
if(ch=='g'||ch=='G')
{
cout<<"G";
return 0;
}
if(ch=='h'||ch=='H')
{
cout<<"H";
return 0;
}
if(ch=='i'||ch=='I')
{
cout<<"I";
return 0;
}
if(ch=='j'||ch=='J')
{
cout<<"J";
return 0;
}
if(ch=='k'||ch=='K')
{
cout<<"K";
return 0;
}
if(ch=='l'||ch=='L')
{
cout<<"L";
return 0;
}
if(ch=='m'||ch=='M')
{
cout<<"M";
return 0;
}
if(ch=='n'||ch=='N')
{
cout<<"N";
return 0;
}
if(ch=='o'||ch=='O')
{
cout<<"O";
return 0;
}
if(ch=='p'||ch=='P')
{
cout<<"P";
return 0;
}
if(ch=='q'||ch=='Q')
{
cout<<"Q";
return 0;
}
if(ch=='r'||ch=='R')
{
cout<<"R";
return 0;
}
if(ch=='s'||ch=='S')
{
cout<<"S";
return 0;
}
if(ch=='t'||ch=='T')
{
cout<<"T";
return 0;
}
if(ch=='u'||ch=='U')
{
cout<<"U";
return 0;
}
if(ch=='v'||ch=='V')
{
cout<<"V";
return 0;
}
if(ch=='w'||ch=='W')
{
cout<<"W";
return 0;
}
if(ch=='x'||ch=='X')
{
cout<<"X";
return 0;
}
if(ch=='y'||ch=='Y')
{
cout<<"Y";
return 0;
}
if(ch=='z'||ch=='Z')
{
cout<<"Z";
return 0;
}
else
{
cout<<ch;
}
return 0;
}
//嘎嘎嘎。。。
- 1
信息
- ID
- 1711
- 难度
- 3
- 分类
- (无)
- 标签
- 递交数
- 47
- 已通过
- 23
- 通过率
- 49%
- 被复制
- 3
- 上传者