2 条题解
-
1
#include<queue> #include<math.h> #include<stdio.h> #include<iostream> #include<vector> #include<iomanip> #include<string.h> #include<algorithm> #include<cmath> #include<cstdio> #include<cstring> #include<stack> #include<fstream> #include<string> using namespace std; const int N=50+10;//1表示开头为1,2表示10的2次方 const int INT=0x3f3f3f3f;//INT+INT int范围内最大INT*INT ,long long; char s[N]; int main ( ) { cin.getline(s,N); int len=strlen(s); for(int i=0;i<len;i++){ if(s[i]+3>122)s[i]=s[i]+3-26-32; else if(s[i]+3>90&&s[i]+3<97)s[i]=s[i]+3-26+32; else if(s[i]<='Z'&&s[i]>='A')s[i]+=32+3; else if(s[i]>='a'&&s[i]<='z')s[i]-=32-3; } for(int i=len-1;i>=0;i--){ cout<<s[i]; } } //防伪zzc~
信息
- ID
- 1108
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 8
- 标签
- 递交数
- 38
- 已通过
- 7
- 上传者