GoodLuckCat @ 2023-08-18 10:18:03
#include<iostream>
using namespace std;
int main(){char a,c;int b;cin>>b;while(cin>>a){c=a+b;if(c>'z')c-=26;cout<<c;}}
验证码mdsx
寄
by Starry_dream @ 2023-08-18 11:15:56
@Huyuhao0215 你………&()……&……的滥用下载数据!!
by Cryflmind @ 2023-08-18 11:46:22
用字符串做注意一个问题,cin会留下一个换行符,所以可能需要getchar()处理一下
by GoodLuckCat @ 2023-08-19 10:17:12
@hjinyb 下载数据刚好可以过(
by Tanleyan @ 2023-08-19 17:08:31
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
string s;
int n,i,j;
cin>>n;
cin>>s;
for(i=0;i<s.size();++i)
{
for(j=1;j<=n;++j)
{
++s[i];
if(s[i]>'z')
s[i]='a';
}
}
cout<<s;
return 0;
}
by GoodLuckCat @ 2023-09-08 17:54:50
@ouyangluoxi thx.
by Tanleyan @ 2023-09-12 20:24:12
@Huyuhao0215 你什么意思
by GoodLuckCat @ 2023-09-21 20:44:09
@ouyangluoxi thanks的意思