vj1405 古韵之同心锁

Vj1405 古韵之同心锁

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//±ÉÈ˵ķ½·¨ //Ä£Äâ×Å×ö¾ÍÐÐ / var m,n,p:integer; s,b:ansistring; procedure init; begin readln(s); readln(m,n,p); end; procedure cal; var i,j,l:integer; begin if n=1 then begin for i:=1 to length(s) do if ord(s[i]) in [65. .90] then s[i]:=chr(ord(s[i])+32) else if ord(s[i]) in [97. .122] then s[i]:=chr(ord(s[i])-32); s:=s+'Immorta1'; end; if n=2 then begin b:=copy(s,m,length(s)-m+1); s:=copy(s,1,m-1); l:=length(b); while pos(b,s)>0 do begin j:=pos(b,s); s:=copy(s,1,j-1)+copy(s,j+l,length(s)-j-l+1);
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Vj1405 古韵之同心锁

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online