Ответы
Ответ дал:
0
var count, P: integer;
S, PS: string;
Begin
readln(S, PS);
P:=POS(PS,S);
while P>0 do
begin
count := count + 1;
Delete(S, P, Length(PS));
P:=POS(PS, S);
end;
writeln(count);
end.
Вот так =)
S, PS: string;
Begin
readln(S, PS);
P:=POS(PS,S);
while P>0 do
begin
count := count + 1;
Delete(S, P, Length(PS));
P:=POS(PS, S);
end;
writeln(count);
end.
Вот так =)
Вас заинтересует
8 лет назад
10 лет назад
10 лет назад