Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
program abc;
var
str: string;
i: Integer;
begin
ReadLn(str);
i := 0;
foreach w: string in Regex.Split(str, ' +') do begin
if w[1] = 'С' then begin
Inc(i);
if i = 2 then begin
WriteLn(w);
break;
end;
end;
end;
end.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question