Klin_Miracle @ 2018-10-13 21:54:16
using namespace std; char a[200]; int n; int main() { //freopen(".in","r",stdin); //freopen(".out","w",stdout); cin>>n; cin>>a; int lenth=strlen(a); for(int i=0;i<=lenth-1;i++) { a[i]=a[i]+n; } for(int i=0;i<=lenth-1;i++) { cout<<a[i]; } return 0; }
by Klin_Miracle @ 2018-10-13 21:55:33
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<string>
#include<cmath>
#include<ctime>
#include<cctype>
#include<iomanip>
#include<algorithm>
#include<queue>
using namespace std;
char a[200];
int n;
int main()
{
//freopen(".in","r",stdin);
//freopen(".out","w",stdout);
cin>>n;
cin>>a;
int lenth=strlen(a);
for(int i=0;i<=lenth-1;i++)
{
a[i]=a[i]+n;
}
for(int i=0;i<=lenth-1;i++)
{
cout<<a[i];
}
return 0;
}
by NaCly_Fish @ 2018-10-13 21:55:47
你这头像很危险啊
by decoqwq @ 2018-10-13 21:56:26
@又双叒叕改名 可能会变成大写字母。。
by NaCly_Fish @ 2018-10-13 21:56:27
没取膜吧
by NaCly_Fish @ 2018-10-13 21:58:00
@Decoration 应该是因为没取膜
by Klin_Miracle @ 2018-10-13 21:58:37
好哒我去试一下
by 绝顶我为峰 @ 2018-10-13 22:02:43
头像要被枪毙