Pagini recente » Cod sursa (job #424613) | Cod sursa (job #1106147) | Cod sursa (job #1180661) | Cod sursa (job #663977) | Cod sursa (job #508181)
Cod sursa(job #508181)
const f='text.in'; g='text.out';
var
i,s,nr,t:longint;
stop:boolean;
c:char;
begin
assign(input,f);reset(input);
assign(output,g);rewrite(output);
s:=0;nr:=0;
stop:=false;
while not eof(input) do
begin
if (c>='a') and (c<='z') or (c>='A') and (c<='Z') then
begin
inc(s);
stop:=true;
end
else
if stop then
begin
stop:=false;
inc(nr);
end;
end;
if stop then inc(nr);
t:=s div nr;
write(t);
close(input);close(output);
end.