Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var
- d1,d2,d3,d4 : longint;
- s1,s2,s3 : string;
- c1 : char;
- begin
- readln(c1);
- readln(s1);
- readln(s2);
- d1:=pos(c1,s1);
- s1[d1]:=':)';
- d2:=pos(c1,s1);
- s1[d1]:='_';
- d2:=pos(c1,s1);
- s1[d2]:='?';
- d3:=pos(c1,s2);
- s2[d3]:=':)';
- d4:=pos(c1,s2);
- s2[d4]:='_';
- d4:=pos(c1,s2);
- s2[d4]:='?';
- writeln(s1);
- writeln(s2);
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement