Pagini recente » Cod sursa (job #506939) | Cod sursa (job #1539230) | Cod sursa (job #1802721) | Diferente pentru problema/ccount intre reviziile 15 si 17 | Cod sursa (job #1039198)
var c:char;
l, c, k:longint;
begin
assign(input,'text.in');
assign(output,'text.out');
reset(input);
rewrite(output);
l:=0; c:=0; k:=0;
while not eof do
begin
read(c);
if not (c in ['a'..'z','A'..'Z']) then
begin
inc(l);
if k=0 then
begin
inc(c);
k:=1;
end;
end
else k:=0;
end;
writeln(l div c);
close(input);
close(output);
end._