Pagini recente » Cod sursa (job #283405) | Cod sursa (job #1018977) | Cod sursa (job #2871506) | Cod sursa (job #2640970) | Cod sursa (job #728929)
Cod sursa(job #728929)
var f,g:text;
c:char;
k,b,v:longint;
begin
assign(f,'text.in');reset(f);
assign(g,'text.out');rewrite(g);
k:=0;b:=0;v:=0;
while not eof(f) do
begin
read(f,c);
if ((ord(c)>65) and (ord(c)<91)) or ((ord(c)>97) and (ord(c)<123))
then begin
inc(k);
inc(b);
end
else if b<>0 then begin inc(v);
b:=0
end;
end;
write(g,b div v);
close(f);close(g);
end.