LRM123 @ 2016-01-31 20:44:05
我是这么写的,哪位大神帮忙看一下?
var
i,k,n,j:longint;
s: string;
begin
readln(n);
readln(s);
for j:=1 to length(s) do
s[i]:=chr(ord(s[i])+n);
for i:=1 to length(s)do
begin
k:=ord(s[i]);
if ((k<65)and(k>90))or((k<97)and(k>122))then s[i]:=chr(ord(s[i])-26);
end;
writeln(s);
end.
by 唐三少 @ 2016-06-18 20:31:27
markdow{你这个明显错了吧}