ningmeng050304 @ 2017-05-10 15:14:16
var s:string;
i,l,n:integer;
begin;
readln(n);
readln(s);
l:=length(s);
s:=lowercase(s);
for i:=1 to l do begin
if ord(s[i])+n>=122 then s[i]:=chr(ord(s[i])+n-26)
else s[i]:=chr(ord(s[i])+n);
end;
write(s);
end.
by qq2259565069 @ 2017-05-14 18:49:20
如果它<=122那么直接就可以输出了,不用存在数组里
by cl5673 @ 2017-05-21 22:15:03
n可能不止26以内