Pagini recente » Cod sursa (job #2098627) | Cod sursa (job #2569072) | Cod sursa (job #1190112) | Cod sursa (job #2468005) | Cod sursa (job #302296)
Cod sursa(job #302296)
var s,cuv,con:qword;
c:char; f,g:text;
begin
assign(f,'text.in'); reset(f);
assign(g,'text.out'); rewrite(g);
cuv:=0;
s:=0;
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.