Pagini recente » Cod sursa (job #2318252) | Cod sursa (job #2916634) | Cod sursa (job #2235701) | Cod sursa (job #805431) | Cod sursa (job #302286)
Cod sursa(job #302286)
var s,cuv,con:qword;
c:char; f,g:text;
begin
assign(f,'text.in'); reset(f);
assign(g,'text.out'); rewrite(g);
while not eoln(f) do begin
read(f,c);
if (c in ['a'..'z']) or (c in ['a'..'z']) then begin
inc(cuv);
con:=0;
while not (eoln(f)) and ((c in ['a'..'z']) or (c in ['a'..'z'])) do begin inc(con); read(f,c); end;
s:=s+con;
end;
end;
write(g,s div cuv);
close(g);
end.