const
nn = 25; // максимум слов
var
a: array[1..nn] of string[20];
procedure Parser(s: string; var k: integer);
var
i,n: integer;
w: string;
begin
w := '';
k := 0;
n := length(s);
for i := 1 to n do
if s[i] <> ' ' then w := w + s[i]
else
if length(w) > 0 then
begin
k := k + 1;
a[k] := w;
w := '';
end;
if length(w) > 0 then
begin
k := k + 1;
a[k] := w;
end;
end;
var
s: string[254];
i, k: integer;
begin
Readln(s);
Parser(s, k);
for i := 1 to k do
if Pos('ар', a[i]) > 0 then
write(a[i], ' ');
end.
Программа уровня Турбо Паскаль
Объяснение:
No or not?
Grammar > Easily confused words > No or not?
из English Grammar Today
No and not are the two most common words we use to indicate negation. We use no before a noun phrase:
There’s no address on the envelope.
[parent to child]
No biscuits before dinner!
No decisions have been made.
We use not with any other phrase or clause:
It’s not often that you stop and think about the way you breathe.
Not suitable for children under 15.
Not surprisingly, it was a tense match but eventually the more experienced Australians won.
A:
Do you go cycling all year round?
B:
Not in the winter.