Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7243 | 赖梓乐 | 08大小写转换 | C++ | Accepted | 0 MS | 256 KB | 440 | 2025-04-05 20:53:54 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ char d; cin>>d; if(d>='A' && d<='Z'){ d=d+32; } else{ if(d<='z' && d>='a'){ d=d-32; } } cout<<d; return 0; }