竞赛
考级
法兰西玫瑰
#include<bits/stdc++.h> using namespace std; int main(){ string a; cin>>a; for(int i=0;i<a.length();i++){ int c=a[i]; if(c>=65&&c<=87||c>=97&&c<=119){ c+=3; a[i]=c; }else{ c-=23; a[i]=c; } if(c>=65&&c<=90){ c+=32; a[i]=c; }else{ c-=32; a[i]=c; } } for(int i=a.length()-1;i>=0;i--){ cout<<a[i]; } return 0; }
ikun
#include<bits/stdc++.h> using namespace std; int main(){ char a[55]; cin>>a; for(int i=0;i<strlen(a);i++){ if(a[i]'x' or a[i]'y' or a[i]'z' or a[i]'X' or a[i]'Y' or a[i]'Z'){ int x=a[i]; char s=x+3-26; a[i]=s; }else{ int x=a[i]; char s=x+3; a[i]=s; } } for(int i=0;i<strlen(a);i++){ if(a[i]<='z' and a[i]>='a'){ a[i]-=32; }else if(a[i]<='Z' and a[i]>='A'){ a[i]+=32; } } for(int i=strlen(a)-1;i>=0;i--){ cout<<a[i]; } return 0; }
印度牢哒
嫌疑を避ける ~~
158****1015
acgoacgo
#include <bits/stdc++.h> using namespace std; int main(){ string s,s1=""; cin>>s; for(int i=0;i<s.size();i++) { if(s[i]>='a'&&s[i]<='z') { int a=(int)s[i]-97; a+=3,a%=26; s[i]=(char)a+97; } else { int a=(int)s[i]-65; a+=3,a%=26; s[i]=(char)a+65; } } for(int i=s.size()-1;i>=0;i--) s1+=s[i]; for(int i=0;i<s1.size();i++) { if(s1[i]>='a'&&s1[i]<='z') s1[i]-=32; else s1[i]+=32; } cout<<s1<<endl; return 0; }
Voldemort
#include <bits/stdc++.h> using namespace std; int main(){ string a; cin>>a; for(int i=0;i<a.length();i++){ if((a[i]>='a' && a[i]<='w') || (a[i]>='A' && a[i]<='W')){ a[i]+=3; }else if((a[i]>='x' && a[i]<='z') || (a[i]>='X' && a[i]<='Z')){ a[i]-=23; } if(a[i]>='A' && a[i]<='Z'){ a[i]+=32; }else if(a[i]>='a' && a[i]<='z'){ a[i]-=32; } } for(int i=a.length()-1;i>=0;i--){ cout<<a[i]; } return 0; }
张高纶
bits/stdc++.h
沃姆
潜龙暗虎
#include <string> using namespace std; int main(); cin >> str; }
c++.....
#include <iostream> #include <algorithm> using namespace std; int main(){ string a; cin >> a; for(int i = 0;i < a.size();i ++){ if(a[i] >= 'x' && a[i] <= 'z' || a[i] >= 'X' && a[i] <= 'Z') a[i] -= 'x' - 'a'; else a[i] += 3; } for(int i = 0;i < a.size() / 2;i ++) swap(a[i],a[a.size() - i - 1]); for(int i = 0;i < a.size();i ++){ if(a[i] >= 'A' && a[i] <= 'Z') a[i] += 32; else a[i] -= 32; } cout << a; }
为什么要学c++
JMZ詹总
准
majmDZB
耐高总冠军 张文杰
6.
手持剑,刺锋芒