Varvalian @ 2018-04-22 11:39:50
#include<bits/stdc++.h>
using namespace std;
int n,ch;
int main()
{
int i;
cin>>n;
n%=26;
getchar();
while(ch=getchar(),ch!='\n')
{
ch+=n;
cout<<(char)(ch>'z'? ch-26:ch);
}
return 0;
}
by yjxyjx @ 2018-04-22 12:40:31
把'\n'改成EOF试试
by yjxyjx @ 2018-04-22 12:40:41
@Okitazero
by strangers @ 2018-04-22 14:44:23
@Okitazero 本机过了就是过了,OJ不过说明OJ有问题 ————鲁迅
by 张文思 @ 2018-04-22 15:34:23
@strangers ?!