908671152czy @ 2018-01-07 15:01:56
#include<stdio.h>
main()
{
char str[50];
int i=0,len=0,n;
scanf("%d",&n);
char ch=getchar();
for(i=0;1;i++)
{
scanf("%c",&str[i]);
if(str[i]=='\n')
break;
if(str[i]+n<='z')
str[i]+=n;
else
str[i]=str[i]+n-26;
len=len+1;
}
for(i=0;i<len;i++)
printf("%c"str[i]);
}
求大佬看一下,为什么我自己按测试数据来可以,一提交又是零分
by Lolierl @ 2018-01-07 15:16:14
@908671152czy
int main
return 0
详见P1001
by ⚡GG⚡ @ 2018-02-23 17:38:03
return0!
没他直接挂0