Pagini recente » Cod sursa (job #2785247) | Cod sursa (job #1718792) | lot2006z2 | Cod sursa (job #935751) | Cod sursa (job #118875)
Cod sursa(job #118875)
program lll;
var
nc,lc,n,i:longint;
f,g:text;
c:char;
begin
assign(f,'text.in');reset(f);
assign(g,'text.out');rewrite(g);
nc:=0;lc:=0;
i:=1;
while not eof(f) do
begin
read(f,c);
while not (c in ['A'..'Z','a'..'z']) do
begin i:=i+1;read(f,c); end;
while c in ['A'..'Z','a'..'z'] do
begin i:=i+1;read(f,c) ;lc:=lc+1;end;
nc:=nc+1;
end;
write(g,trunc(lc/nc));
close(f);close(g);
end.