20 条题解

  • -2
    @ 2021-12-7 17:42:03

    /***************************************** 备注: ******************************************/ #include #include <math.h> #include #include <stdio.h> #include #include #include #include <string.h> #include using namespace std; #define LL long long const int N = 1e5 + 10; const int INF = 0x3f3f3f3f; int a[N];

    int main() {

    string a;
    getline(cin,a);
    int x=a.size();
    for(int j=0;j<x;j++)
    {
    	
    	if(a[j]<91&&a[j]>='A')
    	{
    		a[j]+=32;
    	}else if(a[j]<='z'&&a[j]>='a') a[j]-=32;
    	
    	cout<<char(a[j]);
    }
    

    }

    信息

    ID
    1092
    时间
    1000ms
    内存
    128MiB
    难度
    5
    标签
    递交数
    775
    已通过
    276
    上传者