20 条题解
-
-3
#include <queue> #include <math.h> #include <stack> #include <stdio.h> #include <iostream> #include <vector> #include <iomanip> #include <string.h> #include <algorithm> 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
- 上传者