Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:不知为何,就是WA,请指教

Posted by wtswu at 2011-03-06 10:14:21 on Problem 3981
In Reply To:Re:不知为何,就是WA,请指教 Posted by:wtswu at 2011-03-06 10:13:50
var
  s:ansistring;
procedure change(n:longint);
begin
  delete(s,n,3);
  insert('me',s,n);
end;
begin
  while not eof do begin
    readln(s);
    while pos('you',s)<>0 do
      change(pos('you',s));
    writeln(s);
  end;                
end.

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator